diff --git a/crates/vxls-production/src/lib.rs b/crates/vxls-production/src/lib.rs index 4826fb0..b77c308 100644 --- a/crates/vxls-production/src/lib.rs +++ b/crates/vxls-production/src/lib.rs @@ -5,7 +5,10 @@ use bytemuck::Pod; use bytemuck::Zeroable; +use vxls_voxel_cache::schema::InsertionInformation; +use vxls_voxel_cache::schema::LocationPage; pub use vxls_voxel_cache::schema::StructureAnchor; +use wgpu::naga::keywords; /// A structure locator format to locate node within an ntree pub mod tree_locator; @@ -69,3 +72,20 @@ pub trait Has } } +pub struct ProducedNode +where [(); N * N * N]:, +{ + insersion_info: InsertionInformation, + location: LocationPage, + attributes: [A; N * N * N], +} + +pub trait Producer +where [(); N * N * N]:, +{ + fn produce(&self, + producer_id: ProducerId, + anchor: StructureAnchor, + locator: StructureLocator + ) -> ProducedNode; +}