From 2bba6c8476ecbbbf027095db93c26961c2e2880b Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Fri, 29 Mar 2024 09:16:29 +0000 Subject: [PATCH] Make brickmap struct private --- src/voxel/brickworld/brickmap_cache.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/voxel/brickworld/brickmap_cache.rs b/src/voxel/brickworld/brickmap_cache.rs index 1549bd3..ba0a820 100644 --- a/src/voxel/brickworld/brickmap_cache.rs +++ b/src/voxel/brickworld/brickmap_cache.rs @@ -1,19 +1,19 @@ use crate::gfx::{BulkBufferBuilder, Context}; -#[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 { pub grid_idx: usize, pub shading_table_offset: u32, } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] +struct Brickmap { + bitmask: [u32; 16], + shading_table_offset: u32, + lod_color: u32, +} + #[repr(C)] #[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] struct BrickmapUploadElement {