bevy_compute_readback
Crate to abstract away the boilerplate of creating compute shaders with readback in the Bevy game engine.
This based on the GPU readback example (gpu_readback.rs).
Usage
use ;
// Create a resource to store your shader inputs and derive AsBindGroup.
// Implement ComputeShader for your custom shader
/// Create the readback entity to receive updates from CustomComputeShader.
/// In your app, add ComputeShaderPlugin.
app.add_plugins;
See examples
for a working demo.
Bevy support table
bevy | bevy_compute_readback |
---|---|
0.16 | 0.1.0 |