dunge_shade/
instance.rs

1use crate::{define::Define, types::ValueType};
2
3/// The instance type description.
4pub trait Instance {
5    type Projection: Projection + 'static;
6    const DEF: Define<ValueType>;
7}
8
9/// Instance type projection in a shader.
10pub trait Projection {
11    fn projection(id: u32) -> Self;
12}