feat: Adding voxel_data.rs module start, for types to handle voxel attributes

This commit is contained in:
2026-11-15 13:47:29 +01:00
parent dd32c772e5
commit c13a04c8e2
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ mod production;
mod sparse_tree;
mod terrain;
mod voxel_cache;
pub mod voxel_data;
enum DisplayTexture
{
+7
View File
@@ -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;
}