Make brickmap struct private

This commit is contained in:
Jarrod Doyle 2024-03-29 09:16:29 +00:00
parent 4a5c142625
commit 2bba6c8476
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 8 additions and 8 deletions

View File

@ -1,19 +1,19 @@
use crate::gfx::{BulkBufferBuilder, Context}; 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)] #[derive(Debug, Default, Copy, Clone)]
pub struct BrickmapCacheEntry { pub struct BrickmapCacheEntry {
pub grid_idx: usize, pub grid_idx: usize,
pub shading_table_offset: u32, 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)] #[repr(C)]
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] #[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
struct BrickmapUploadElement { struct BrickmapUploadElement {