Move Brickmap definition to brickmap_cache
This commit is contained in:
parent
77b3e5172b
commit
511e4b9233
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue