Move Brickmap definition to brickmap_cache

This commit is contained in:
Jarrod Doyle 2024-03-25 15:40:27 +00:00
parent 77b3e5172b
commit 511e4b9233
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
2 changed files with 7 additions and 9 deletions

View File

@ -10,14 +10,6 @@ use super::{
shading_table::ShadingTableAllocator, 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)] #[repr(C)]
#[derive(Debug, Default, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)] #[derive(Debug, Default, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
struct WorldState { struct WorldState {

View File

@ -1,6 +1,12 @@
use crate::gfx::{BulkBufferBuilder, Context}; 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)] #[derive(Debug, Default, Copy, Clone)]
pub struct BrickmapCacheEntry { pub struct BrickmapCacheEntry {