pub enum UniformId {
ViewMatrix,
ModelMatrix,
MeshMatrix,
BoneScale,
BoneMatrices,
Material,
Texture(TextureId),
User(u8),
Buffer(u8),
}Expand description
An enumeration of uniforms - that this crate particularly cares about
Variants§
ViewMatrix
The view matrix uniform - once per framebuffer render
ModelMatrix
The model matrix uniform - once per model instance
MeshMatrix
The mesh matrix uniform - once per model mesh
BoneScale
The Bone data uniform - once per model
BoneMatrices
The Bone data uniform - once per model
Material
The Material data uniform - once per model, and it may have many forms, but it must start with ShaderMaterialBaseData
Texture(TextureId)
Texure uniform - dependent on the program.
User(u8)
User uniform - dependent on the program.
Buffer(u8)
User uniform buffer - dependent on the program.
Trait Implementations§
impl Copy for UniformId
impl Eq for UniformId
impl StructuralPartialEq for UniformId
Auto Trait Implementations§
impl Freeze for UniformId
impl RefUnwindSafe for UniformId
impl Send for UniformId
impl Sync for UniformId
impl Unpin for UniformId
impl UnwindSafe for UniformId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more