rust-gpu/examples
Fredrik Fornwall ed697bc192
Rename bin/wgpu_runner.rs to main.rs (#1111)
* Rename bin/wgpu_runner.rs to main.rs

Fixes running `cargo run --bin example-runner-wgpu` as documented at
https://embarkstudios.github.io/rust-gpu/book/building-rust-gpu.html

* Add --lib to sample commands in android.nix
2024-01-02 14:20:01 +00:00
..
multibuilder Clippy fixes 2023-01-05 14:50:13 +02:00
runners Rename bin/wgpu_runner.rs to main.rs (#1111) 2024-01-02 14:20:01 +00:00
shaders example-runner-ash: use NumPad +/- to control sky-shader's "sun intensity" through a specialization constant. 2023-07-21 12:27:17 +03:00
README.md Add examples readme (#785) 2021-10-28 15:29:12 +02:00

Examples

The examples here are split into a few categories:

  • The shaders folder contain various rust-gpu shaders, and are examples of how to use rust-gpu.
  • The runners folder contains programs that build and execute the shaders in the shaders folder using, for example, Vulkan. These programs are not exactly examples of how to use rust-gpu, as they're rather generic vulkan sample apps, but they do contain some infrastructure examples of how to integrate rust-gpu shaders into a build system (although both aren't the cleanest of examples, as they're also testing some of the more convoluted ways of consuming rust-gpu).
  • Finally, the multibuilder folder is a very short sample app of how to use the multimodule feature of spirv-builder.