MiniGPU is a simple and lightweight graphics library for Rust. It is designed to be easy to use and easy to understand. It is based on the wgpu
library and provides a simple and easy-to-use API for rendering 3D graphics and ready for gpu compute.
now it’s still in development, and the API may change.
# Run the examples with the `examples` directory
cargo run --example triangle
cargo run --example image
cargo run --example objloader
https://mizy.github.io/miniGPU/examples/wasm/
use from group(10) for other uniform binding
you can use #include, #define, #ifdef, #endif in shader code,
view src/components/materials/shaderlibs
for more detail
#include <CameraUniform>
#include <VertexStruct>
#define USE_CAMERA_UNIFORM
#ifdef USE_CAMERA_UNIFORM
#include #include <CameraUniform>
#endif
for web platform, the wasm file is huge, and also dont imporve a lot for performance
eval “$(ssh-agent -s)” ssh-add ~/.ssh/id_rsa_account1 ssh-add ~/.ssh/id_rsa_account2