pub enum GLSLType {
Show 39 variants
Void,
Bool,
Int,
Uint,
Float,
Double,
Vec2,
Vec3,
Vec4,
IVec2,
IVec3,
IVec4,
UVec2,
UVec3,
UVec4,
BVec2,
BVec3,
BVec4,
Mat2,
Mat3,
Mat4,
Mat2x3,
Mat2x4,
Mat3x2,
Mat3x4,
Mat4x2,
Mat4x3,
DMat4,
Sampler2D,
Sampler3D,
SamplerCube,
Sampler2DArray,
Sampler2DShadow,
ISampler2D,
USampler2D,
Image2D,
UImage2D,
Struct(String),
Array(Box<GLSLType>, u32),
}Expand description
GLSL type system.
Variants§
Void
void
Bool
bool
Int
int
Uint
uint
Float
float
Double
double
Vec2
vec2
Vec3
vec3
Vec4
vec4
IVec2
ivec2
IVec3
ivec3
IVec4
ivec4
UVec2
uvec2
UVec3
uvec3
UVec4
uvec4
BVec2
bvec2
BVec3
bvec3
BVec4
bvec4
Mat2
mat2
Mat3
mat3
Mat4
mat4
Mat2x3
mat2x3
Mat2x4
mat2x4
Mat3x2
mat3x2
Mat3x4
mat3x4
Mat4x2
mat4x2
Mat4x3
mat4x3
DMat4
dmat4
Sampler2D
sampler2D
Sampler3D
sampler3D
SamplerCube
samplerCube
Sampler2DArray
sampler2DArray
Sampler2DShadow
sampler2DShadow
ISampler2D
isampler2D
USampler2D
usampler2D
Image2D
image2D
UImage2D
uimage2D
Struct(String)
A named struct type.
Array(Box<GLSLType>, u32)
A fixed-length array of another type.
Implementations§
Source§impl GLSLType
impl GLSLType
Sourcepub fn component_count(&self) -> u32
pub fn component_count(&self) -> u32
Return the component (column) count for vector/matrix types, or 1.
Sourcepub fn is_float_like(&self) -> bool
pub fn is_float_like(&self) -> bool
Return true if the type is a floating-point scalar or vector.
Trait Implementations§
impl Eq for GLSLType
impl StructuralPartialEq for GLSLType
Auto Trait Implementations§
impl Freeze for GLSLType
impl RefUnwindSafe for GLSLType
impl Send for GLSLType
impl Sync for GLSLType
impl Unpin for GLSLType
impl UnsafeUnpin for GLSLType
impl UnwindSafe for GLSLType
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