Enum glium::uniforms::UniformType
source · pub enum UniformType {
Show 117 variants
Float,
FloatVec2,
FloatVec3,
FloatVec4,
Double,
DoubleVec2,
DoubleVec3,
DoubleVec4,
Int,
IntVec2,
IntVec3,
IntVec4,
UnsignedInt,
UnsignedIntVec2,
UnsignedIntVec3,
UnsignedIntVec4,
Int64,
Int64Vec2,
Int64Vec3,
Int64Vec4,
UnsignedInt64,
UnsignedInt64Vec2,
UnsignedInt64Vec3,
UnsignedInt64Vec4,
Bool,
BoolVec2,
BoolVec3,
BoolVec4,
FloatMat2,
FloatMat3,
FloatMat4,
FloatMat2x3,
FloatMat2x4,
FloatMat3x2,
FloatMat3x4,
FloatMat4x2,
FloatMat4x3,
DoubleMat2,
DoubleMat3,
DoubleMat4,
DoubleMat2x3,
DoubleMat2x4,
DoubleMat3x2,
DoubleMat3x4,
DoubleMat4x2,
DoubleMat4x3,
Sampler1d,
ISampler1d,
USampler1d,
Sampler2d,
ISampler2d,
USampler2d,
Sampler3d,
ISampler3d,
USampler3d,
Sampler1dArray,
ISampler1dArray,
USampler1dArray,
Sampler2dArray,
ISampler2dArray,
USampler2dArray,
SamplerCube,
ISamplerCube,
USamplerCube,
Sampler2dRect,
ISampler2dRect,
USampler2dRect,
Sampler2dRectShadow,
SamplerCubeArray,
ISamplerCubeArray,
USamplerCubeArray,
SamplerBuffer,
ISamplerBuffer,
USamplerBuffer,
Sampler2dMultisample,
ISampler2dMultisample,
USampler2dMultisample,
Sampler2dMultisampleArray,
ISampler2dMultisampleArray,
USampler2dMultisampleArray,
Sampler1dShadow,
Sampler2dShadow,
SamplerCubeShadow,
Sampler1dArrayShadow,
Sampler2dArrayShadow,
SamplerCubeArrayShadow,
Image1d,
IImage1d,
UImage1d,
Image2d,
IImage2d,
UImage2d,
Image3d,
IImage3d,
UImage3d,
Image2dRect,
IImage2dRect,
UImage2dRect,
ImageCube,
IImageCube,
UImageCube,
ImageBuffer,
IImageBuffer,
UImageBuffer,
Image1dArray,
IImage1dArray,
UImage1dArray,
Image2dArray,
IImage2dArray,
UImage2dArray,
Image2dMultisample,
IImage2dMultisample,
UImage2dMultisample,
Image2dMultisampleArray,
IImage2dMultisampleArray,
UImage2dMultisampleArray,
AtomicCounterUint,
}
Expand description
Type of a uniform in a program.
Variants§
Float
FloatVec2
FloatVec3
FloatVec4
Double
DoubleVec2
DoubleVec3
DoubleVec4
Int
IntVec2
IntVec3
IntVec4
UnsignedInt
UnsignedIntVec2
UnsignedIntVec3
UnsignedIntVec4
Int64
Int64Vec2
Int64Vec3
Int64Vec4
UnsignedInt64
UnsignedInt64Vec2
UnsignedInt64Vec3
UnsignedInt64Vec4
Bool
BoolVec2
BoolVec3
BoolVec4
FloatMat2
FloatMat3
FloatMat4
FloatMat2x3
FloatMat2x4
FloatMat3x2
FloatMat3x4
FloatMat4x2
FloatMat4x3
DoubleMat2
DoubleMat3
DoubleMat4
DoubleMat2x3
DoubleMat2x4
DoubleMat3x2
DoubleMat3x4
DoubleMat4x2
DoubleMat4x3
Sampler1d
ISampler1d
USampler1d
Sampler2d
ISampler2d
USampler2d
Sampler3d
ISampler3d
USampler3d
Sampler1dArray
ISampler1dArray
USampler1dArray
Sampler2dArray
ISampler2dArray
USampler2dArray
SamplerCube
ISamplerCube
USamplerCube
Sampler2dRect
ISampler2dRect
USampler2dRect
Sampler2dRectShadow
SamplerCubeArray
ISamplerCubeArray
USamplerCubeArray
SamplerBuffer
ISamplerBuffer
USamplerBuffer
Sampler2dMultisample
ISampler2dMultisample
USampler2dMultisample
Sampler2dMultisampleArray
ISampler2dMultisampleArray
USampler2dMultisampleArray
Sampler1dShadow
Sampler2dShadow
SamplerCubeShadow
Sampler1dArrayShadow
Sampler2dArrayShadow
SamplerCubeArrayShadow
Image1d
IImage1d
UImage1d
Image2d
IImage2d
UImage2d
Image3d
IImage3d
UImage3d
Image2dRect
IImage2dRect
UImage2dRect
ImageCube
IImageCube
UImageCube
ImageBuffer
IImageBuffer
UImageBuffer
Image1dArray
IImage1dArray
UImage1dArray
Image2dArray
IImage2dArray
UImage2dArray
Image2dMultisample
IImage2dMultisample
UImage2dMultisample
Image2dMultisampleArray
IImage2dMultisampleArray
UImage2dMultisampleArray
AtomicCounterUint
Trait Implementations§
source§impl Clone for UniformType
impl Clone for UniformType
source§fn clone(&self) -> UniformType
fn clone(&self) -> UniformType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniformType
impl Debug for UniformType
source§impl PartialEq<UniformType> for UniformType
impl PartialEq<UniformType> for UniformType
source§fn eq(&self, other: &UniformType) -> bool
fn eq(&self, other: &UniformType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UniformType
impl Eq for UniformType
impl StructuralEq for UniformType
impl StructuralPartialEq for UniformType
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§
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.