Enum luminance::shader::UniformType [−][src]
pub enum UniformType {}Show variants
Int, UInt, Float, Double, Bool, IVec2, IVec3, IVec4, UIVec2, UIVec3, UIVec4, Vec2, Vec3, Vec4, DVec2, DVec3, DVec4, BVec2, BVec3, BVec4, M22, M33, M44, DM22, DM33, DM44, ISampler1D, ISampler2D, ISampler3D, ISampler1DArray, ISampler2DArray, UISampler1D, UISampler2D, UISampler3D, UISampler1DArray, UISampler2DArray, Sampler1D, Sampler2D, Sampler3D, Sampler1DArray, Sampler2DArray, ICubemap, UICubemap, Cubemap, BufferBinding,
Expand description
Type of a uniform.
This is an exhaustive list of possible types of value you can send to a shader program.
A UniformType
is associated to any type that can be considered sent via the
Uniformable
trait.
Variants
32-bit signed integer.
32-bit unsigned integer.
32-bit floating-point number.
64-bit floating-point number.
Boolean.
2D signed integral vector.
3D signed integral vector.
4D signed integral vector.
2D unsigned integral vector.
3D unsigned integral vector.
4D unsigned integral vector.
2D floating-point vector.
3D floating-point vector.
4D floating-point vector.
2D floating-point (double) vector.
3D floating-point (double) vector.
4D floating-point (double) vector.
2D boolean vector.
3D boolean vector.
4D boolean vector.
2×2 floating-point matrix.
3×3 floating-point matrix.
4×4 floating-point matrix.
2×2 floating-point (double) matrix.
3×3 floating-point (double) matrix.
4×4 floating-point (double) matrix.
Signed integral 1D texture sampler.
Signed integral 2D texture sampler.
Signed integral 3D texture sampler.
Signed integral 1D array texture sampler.
Signed integral 2D array texture sampler.
Unsigned integral 1D texture sampler.
Unsigned integral 2D texture sampler.
Unsigned integral 3D texture sampler.
Unsigned integral 1D array texture sampler.
Unsigned integral 2D array texture sampler.
Floating-point 1D texture sampler.
Floating-point 2D texture sampler.
Floating-point 3D texture sampler.
Floating-point 1D array texture sampler.
Floating-point 2D array texture sampler.
Signed cubemap sampler.
Unsigned cubemap sampler.
Floating-point cubemap sampler.
Buffer binding; used for UBOs.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UniformType
impl Send for UniformType
impl Sync for UniformType
impl Unpin for UniformType
impl UnwindSafe for UniformType
Blanket Implementations
Mutably borrows from an owned value. Read more