diff --git a/src/voxel/brickworld/brickmap.rs b/src/voxel/brickworld/brickmap.rs index 54cef2f..25e02ca 100644 --- a/src/voxel/brickworld/brickmap.rs +++ b/src/voxel/brickworld/brickmap.rs @@ -10,14 +10,6 @@ use super::{ shading_table::ShadingTableAllocator, }; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] -pub struct Brickmap { - pub bitmask: [u32; 16], - pub shading_table_offset: u32, - pub lod_color: u32, -} - #[repr(C)] #[derive(Debug, Default, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] struct WorldState { diff --git a/src/voxel/brickworld/brickmap_cache.rs b/src/voxel/brickworld/brickmap_cache.rs index 168b8c3..b446bf8 100644 --- a/src/voxel/brickworld/brickmap_cache.rs +++ b/src/voxel/brickworld/brickmap_cache.rs @@ -1,6 +1,12 @@ use crate::gfx::{BulkBufferBuilder, Context}; -use super::brickmap::Brickmap; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] +pub struct Brickmap { + pub bitmask: [u32; 16], + pub shading_table_offset: u32, + pub lod_color: u32, +} #[derive(Debug, Default, Copy, Clone)] pub struct BrickmapCacheEntry {