mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
360: Implement TEXTURE_BINDING_ARRAY extension r=kvark a=cwfitzgerald This extends https://github.com/gfx-rs/wgpu/pull/711 into wgpu-rs. Notable changes: - Added an example showing off both this extension and the future descriptor indexing extension. - Changed the framework so there is a static function showing what extensions you need. This is provided by the trait,, which defaults to no extensions, so existing examples and new ones don't have to care about extensions. Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
hello-compute
Runs a compute shader to determine the number of iterations of the rules from Collatz Conjecture
- If n is even, n = n/2
- If n is odd, n = 3n+1
that it will take to finish and reach the number 1.
To Run
# Pass in any 4 numbers as arguments
RUST_LOG=hello_compute cargo run --example hello-compute 1 4 3 295
Example Output
[2020-04-25T11:15:33Z INFO hello_compute] Times: [0, 2, 7, 55]