```rs #[derive(Debug, Clone, Serialize)] #[serde(tag = "t", content = "c")] pub enum MaterialParamet

#[derive(Debug, Clone, Serialize)]
#[serde(tag = "t", content = "c")]
pub enum MaterialParameter {
    Float(f32),
    Vector2(Vector2<f32>),
    Vector3(Vector3<f32>),
    Vector4(Vector4<f32>),
    Color([f32; 4]),
    Int(i32),
    Int2(Vector2<i32>),
    Int3(Vector3<i32>),
    Int4(Vector4<i32>),
    Bool(bool),
    UInt(u32),
    UInt2(Vector2<u32>),
    UInt3(Vector3<u32>),
    UInt4(Vector4<u32>),
    Matrix(ColumnMatrix4<f32>),
    Texture(ResourceID),
}
Was this page helpful?