diff --git a/src/voxel/voxel_renderer.rs b/src/voxel/voxel_renderer.rs index 778f140..ebbde52 100644 --- a/src/voxel/voxel_renderer.rs +++ b/src/voxel/voxel_renderer.rs @@ -177,6 +177,15 @@ impl VoxelRenderer { unpack_bind_group, }) } + + pub fn update_brickmap( + &mut self, + context: &gfx::Context, + world: &mut super::world::WorldManager, + ) { + self.brickmap_manager + .process_feedback_buffer(context, world); + } } impl gfx::Renderer for VoxelRenderer { @@ -240,14 +249,3 @@ impl gfx::Renderer for VoxelRenderer { Ok(()) } } - -impl VoxelRenderer { - pub fn update_brickmap( - &mut self, - context: &gfx::Context, - world: &mut super::world::WorldManager, - ) { - self.brickmap_manager - .process_feedback_buffer(context, world); - } -}