feat: Adding voxel_data.rs module start, for types to handle voxel attributes
This commit is contained in:
@@ -102,6 +102,7 @@ mod production;
|
||||
mod sparse_tree;
|
||||
mod terrain;
|
||||
mod voxel_cache;
|
||||
pub mod voxel_data;
|
||||
|
||||
enum DisplayTexture
|
||||
{
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
pub trait Attribute: bytemuck::Pod + bytemuck::Zeroable + Clone + Copy + 'static {}
|
||||
|
||||
pub trait Has<A: Attribute>
|
||||
{
|
||||
fn get(&self) -> &A;
|
||||
fn get_mut(&mut self) -> &mut A;
|
||||
}
|
||||
Reference in New Issue
Block a user