diff --git a/src/voxel/brickmap.rs b/src/voxel/brickmap.rs index 8619f84..a843335 100644 --- a/src/voxel/brickmap.rs +++ b/src/voxel/brickmap.rs @@ -108,20 +108,6 @@ impl BrickmapManager { } } - pub fn update_buffer(&self, context: &render::Context) { - let queue = &context.queue; - queue.write_buffer( - &self.brickmap_buffer, - 0, - bytemuck::cast_slice(&self.brickmap_cache), - ); - queue.write_buffer( - &self.brickgrid_buffer, - 0, - bytemuck::cast_slice(&self.brickgrid), - ) - } - pub fn get_brickgrid_buffer(&self) -> &wgpu::Buffer { &self.brickgrid_buffer } diff --git a/src/voxel/voxel_renderer.rs b/src/voxel/voxel_renderer.rs index 58dd9f3..a1c3908 100644 --- a/src/voxel/voxel_renderer.rs +++ b/src/voxel/voxel_renderer.rs @@ -61,7 +61,6 @@ impl VoxelRenderer { log::info!("Creating brickmap manager..."); let brickmap_manager = super::brickmap::BrickmapManager::new(context); - brickmap_manager.update_buffer(context); log::info!("Creating compute pipeline..."); let cs_descriptor = wgpu::include_wgsl!("../../assets/shaders/voxel_volume.wgsl");