Browse Source

chore: improve docs on Uniform

pull/43/head
Natasha England-Elbro 11 months ago
parent
commit
8e117c05da
No known key found for this signature in database
GPG Key ID: 46F323AE9236FD6A
  1. 6
      citro3d/src/uniform.rs

6
citro3d/src/uniform.rs

@ -27,16 +27,22 @@ impl From<Index> for i32 { @@ -27,16 +27,22 @@ impl From<Index> for i32 {
#[derive(Debug, PartialEq, Clone, Copy)]
pub enum Uniform {
/// Single float uniform (`.fvec name`)
#[doc(alias = "C3D_FVUnifSet")]
Float(FVec4),
/// Two element float uniform (`.fvec name[2]`)
#[doc(alias = "C3D_FVUnifMtx2x4")]
Float2([FVec4; 2]),
/// Three element float uniform (`.fvec name [3]`)
#[doc(alias = "C3D_FVUnifMtx3x4")]
Float3([FVec4; 3]),
/// Matrix/4 element float uniform (`.fvec name[4]`)
#[doc(alias = "C3D_FVUnifMtx4x4")]
Float4(Matrix4),
/// Bool uniform (`.bool name`)
#[doc(alias = "C3D_BoolUnifSet")]
Bool(bool),
/// Integer uniform (`.ivec name`)
#[doc(alias = "C3D_IVUnifSet")]
Int(IVec),
}
impl Uniform {

Loading…
Cancel
Save