Merge voxel renderer implementation blocks

This commit is contained in:
Jarrod Doyle 2024-03-23 16:29:25 +00:00
parent 5acea1192c
commit 03a74d1b02
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 9 additions and 11 deletions

View File

@ -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);
}
}