examples/features/src/big_compute_buffers/README.md
NOTE: binding_array is Vulkan only.
This example assumes you're familiar with the other GP-GPU compute examples in this repository, if you're not you should go look at those first.
This example also assumes you've specifically come here looking to do this, because you want at least the following:
Demonstrates how to split larger datasets (things too big to fit into a single buffer), across multiple buffers.
1GB, full of 0.0f32.1.0, on the DEVICE.1.0 values as a back to the HOST.You can read more about fragmentation here.
# linux/mac
RUST_LOG=wgpu_examples::big_compute_buffers=info cargo run -r --bin wgpu-examples -- big_compute_buffers
# windows (Powershell)
$env:WGPU_BACKEND="Vulkan"; $env:RUST_LOG="wgpu_examples::big_compute_buffers=info"; cargo run -r --bin wgpu-examples -- big_compute_buffers
[2024-09-29T11:47:55Z INFO wgpu_examples::big_compute_buffers] All 0.0s
[2024-09-29T11:47:58Z INFO wgpu_examples::big_compute_buffers] GPU RUNTIME: 3228ms
[2024-09-29T11:47:58Z INFO wgpu_examples::big_compute_buffers] All 1.0s