diff --git a/lyra-game/src/render/graph/passes/light_cull_compute.rs b/lyra-game/src/render/graph/passes/light_cull_compute.rs index 7b5c487..e477d41 100644 --- a/lyra-game/src/render/graph/passes/light_cull_compute.rs +++ b/lyra-game/src/render/graph/passes/light_cull_compute.rs @@ -216,7 +216,9 @@ impl Node for LightCullComputePass { desc } - fn prepare(&mut self, _world: &mut World, _context: &mut RenderGraphContext) {} + fn prepare(&mut self, _world: &mut World, context: &mut RenderGraphContext) { + context.queue_buffer_write_with(LightCullComputePassSlots::IndexCounterBuffer, 0, 0); + } fn execute( &mut self,