From 03a74d1b02538e863cea628af07b4625868d793f Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 23 Mar 2024 16:29:25 +0000 Subject: [PATCH] Merge voxel renderer implementation blocks --- src/voxel/voxel_renderer.rs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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); - } -}