Enum glsl_lang_pp::types::token::TypeName
source · pub enum TypeName {
Show 162 variants
VOID,
INT,
BOOL,
FLOAT,
DOUBLE,
VEC2,
VEC3,
VEC4,
IVEC2,
IVEC3,
IVEC4,
BVEC2,
BVEC3,
BVEC4,
UINT,
ATOMIC_UINT,
UVEC2,
UVEC3,
UVEC4,
DVEC2,
DVEC3,
DVEC4,
MAT2,
MAT3,
MAT4,
MAT2X2,
MAT2X3,
MAT2X4,
MAT3X2,
MAT3X3,
MAT3X4,
MAT4X2,
MAT4X3,
MAT4X4,
DMAT2,
DMAT3,
DMAT4,
DMAT2X2,
DMAT2X3,
DMAT2X4,
DMAT3X2,
DMAT3X3,
DMAT3X4,
DMAT4X2,
DMAT4X3,
DMAT4X4,
SAMPLER1D,
SAMPLER1DSHADOW,
SAMPLER1DARRAY,
SAMPLER1DARRAYSHADOW,
ISAMPLER1D,
ISAMPLER1DARRAY,
USAMPLER1D,
USAMPLER1DARRAY,
SAMPLER2D,
SAMPLER2DSHADOW,
SAMPLER2DARRAY,
SAMPLER2DARRAYSHADOW,
ISAMPLER2D,
ISAMPLER2DARRAY,
USAMPLER2D,
USAMPLER2DARRAY,
SAMPLER2DRECT,
SAMPLER2DRECTSHADOW,
ISAMPLER2DRECT,
USAMPLER2DRECT,
SAMPLER2DMS,
ISAMPLER2DMS,
USAMPLER2DMS,
SAMPLER2DMSARRAY,
ISAMPLER2DMSARRAY,
USAMPLER2DMSARRAY,
SAMPLER3D,
ISAMPLER3D,
USAMPLER3D,
SAMPLERCUBE,
SAMPLERCUBESHADOW,
ISAMPLERCUBE,
USAMPLERCUBE,
SAMPLERCUBEARRAY,
SAMPLERCUBEARRAYSHADOW,
ISAMPLERCUBEARRAY,
USAMPLERCUBEARRAY,
SAMPLERBUFFER,
ISAMPLERBUFFER,
USAMPLERBUFFER,
IMAGE1D,
IIMAGE1D,
UIMAGE1D,
IMAGE1DARRAY,
IIMAGE1DARRAY,
UIMAGE1DARRAY,
IMAGE2D,
IIMAGE2D,
UIMAGE2D,
IMAGE2DARRAY,
IIMAGE2DARRAY,
UIMAGE2DARRAY,
IMAGE2DRECT,
IIMAGE2DRECT,
UIMAGE2DRECT,
IMAGE2DMS,
IIMAGE2DMS,
UIMAGE2DMS,
IMAGE2DMSARRAY,
IIMAGE2DMSARRAY,
UIMAGE2DMSARRAY,
IMAGE3D,
IIMAGE3D,
UIMAGE3D,
IMAGECUBE,
IIMAGECUBE,
UIMAGECUBE,
IMAGECUBEARRAY,
IIMAGECUBEARRAY,
UIMAGECUBEARRAY,
IMAGEBUFFER,
IIMAGEBUFFER,
UIMAGEBUFFER,
TEXTURE1D,
TEXTURE1DARRAY,
ITEXTURE1D,
ITEXTURE1DARRAY,
UTEXTURE1D,
UTEXTURE1DARRAY,
TEXTURE2D,
TEXTURE2DARRAY,
ITEXTURE2D,
ITEXTURE2DARRAY,
UTEXTURE2D,
UTEXTURE2DARRAY,
TEXTURE2DRECT,
ITEXTURE2DRECT,
UTEXTURE2DRECT,
TEXTURE2DMS,
ITEXTURE2DMS,
UTEXTURE2DMS,
TEXTURE2DMSARRAY,
ITEXTURE2DMSARRAY,
UTEXTURE2DMSARRAY,
TEXTURE3D,
ITEXTURE3D,
UTEXTURE3D,
TEXTURECUBE,
ITEXTURECUBE,
UTEXTURECUBE,
TEXTURECUBEARRAY,
ITEXTURECUBEARRAY,
UTEXTURECUBEARRAY,
TEXTUREBUFFER,
ITEXTUREBUFFER,
UTEXTUREBUFFER,
SAMPLER,
SAMPLERSHADOW,
SUBPASSINPUT,
ISUBPASSINPUT,
USUBPASSINPUT,
SUBPASSINPUTMS,
ISUBPASSINPUTMS,
USUBPASSINPUTMS,
RESERVED(TypeNameAtom),
OTHER(TypeNameAtom),
}
Variants§
VOID
“void”
INT
“int”
BOOL
“bool”
FLOAT
“float”
DOUBLE
“double”
VEC2
“vec2”
VEC3
“vec3”
VEC4
“vec4”
IVEC2
“ivec2”
IVEC3
“ivec3”
IVEC4
“ivec4”
BVEC2
“bvec2”
BVEC3
“bvec3”
BVEC4
“bvec4”
UINT
“uint”
ATOMIC_UINT
“atomic_uint”
UVEC2
“uvec2”
UVEC3
“uvec3”
UVEC4
“uvec4”
DVEC2
“dvec2”
DVEC3
“dvec3”
DVEC4
“dvec4”
MAT2
“mat2”
MAT3
“mat3”
MAT4
“mat4”
MAT2X2
“mat2x2”
MAT2X3
“mat2x3”
MAT2X4
“mat2x4”
MAT3X2
“mat3x2”
MAT3X3
“mat3x3”
MAT3X4
“mat3x4”
MAT4X2
“mat4x2”
MAT4X3
“mat4x3”
MAT4X4
“mat4x4”
DMAT2
“dmat2”
DMAT3
“dmat3”
DMAT4
“dmat4”
DMAT2X2
“dmat2x2”
DMAT2X3
“dmat2x3”
DMAT2X4
“dmat2x4”
DMAT3X2
“dmat3x2”
DMAT3X3
“dmat3x3”
DMAT3X4
“dmat3x4”
DMAT4X2
“dmat4x2”
DMAT4X3
“dmat4x3”
DMAT4X4
“dmat4x4”
SAMPLER1D
“sampler1D”
SAMPLER1DSHADOW
“sampler1DShadow”
SAMPLER1DARRAY
“sampler1DArray”
SAMPLER1DARRAYSHADOW
“sampler1DArrayShadow”
ISAMPLER1D
“isampler1D”
ISAMPLER1DARRAY
“isampler1DArray”
USAMPLER1D
“usampler1D”
USAMPLER1DARRAY
“usampler1DArray”
SAMPLER2D
“sampler2D”
SAMPLER2DSHADOW
“sampler2DShadow”
SAMPLER2DARRAY
“sampler2DArray”
SAMPLER2DARRAYSHADOW
“sampler2DArrayShadow”
ISAMPLER2D
“isampler2D”
ISAMPLER2DARRAY
“isampler2DArray”
USAMPLER2D
“usampler2D”
USAMPLER2DARRAY
“usampler2DArray”
SAMPLER2DRECT
“sampler2DRect”
SAMPLER2DRECTSHADOW
“sampler2DRectShadow”
ISAMPLER2DRECT
“isampler2DRect”
USAMPLER2DRECT
“usampler2DRect”
SAMPLER2DMS
“sampler2DMS”
ISAMPLER2DMS
“isampler2DMS”
USAMPLER2DMS
“usampler2DMS”
SAMPLER2DMSARRAY
“sampler2DMSArray”
ISAMPLER2DMSARRAY
“isampler2DMSArray”
USAMPLER2DMSARRAY
“usampler2DMSArray”
SAMPLER3D
“sampler3D”
ISAMPLER3D
“isampler3D”
USAMPLER3D
“usampler3D”
SAMPLERCUBE
“samplerCube”
SAMPLERCUBESHADOW
“samplerCubeShadow”
ISAMPLERCUBE
“isamplerCube”
USAMPLERCUBE
“usamplerCube”
SAMPLERCUBEARRAY
“samplerCubeArray”
SAMPLERCUBEARRAYSHADOW
“samplerCubeArrayShadow”
ISAMPLERCUBEARRAY
“isamplerCubeArray”
USAMPLERCUBEARRAY
“usamplerCubeArray”
SAMPLERBUFFER
“samplerBuffer”
ISAMPLERBUFFER
“isamplerBuffer”
USAMPLERBUFFER
“usamplerBuffer”
IMAGE1D
“image1D”
IIMAGE1D
“iimage1D”
UIMAGE1D
“uimage1D”
IMAGE1DARRAY
“image1DArray”
IIMAGE1DARRAY
“iimage1DArray”
UIMAGE1DARRAY
“uimage1DArray”
IMAGE2D
“image2D”
IIMAGE2D
“iimage2D”
UIMAGE2D
“uimage2D”
IMAGE2DARRAY
“image2DArray”
IIMAGE2DARRAY
“iimage2DArray”
UIMAGE2DARRAY
“uimage2DArray”
IMAGE2DRECT
“image2DRect”
IIMAGE2DRECT
“iimage2DRect”
UIMAGE2DRECT
“uimage2DRect”
IMAGE2DMS
“image2DMS”
IIMAGE2DMS
“iimage2DMS”
UIMAGE2DMS
“uimage2DMS”
IMAGE2DMSARRAY
“image2DMSArray”
IIMAGE2DMSARRAY
“iimage2DMSArray”
UIMAGE2DMSARRAY
“uimage2DMSArray”
IMAGE3D
“image3D”
IIMAGE3D
“iimage3D”
UIMAGE3D
“uimage3D”
IMAGECUBE
“imageCube”
IIMAGECUBE
“iimageCube”
UIMAGECUBE
“uimageCube”
IMAGECUBEARRAY
“imageCubeArray”
IIMAGECUBEARRAY
“iimageCubeArray”
UIMAGECUBEARRAY
“uimageCubeArray”
IMAGEBUFFER
“imageBuffer”
IIMAGEBUFFER
“iimageBuffer”
UIMAGEBUFFER
“uimageBuffer”
TEXTURE1D
“texture1D”
TEXTURE1DARRAY
“texture1DArray”
ITEXTURE1D
“itexture1D”
ITEXTURE1DARRAY
“itexture1DArray”
UTEXTURE1D
“utexture1D”
UTEXTURE1DARRAY
“utexture1DArray”
TEXTURE2D
“texture2D”
TEXTURE2DARRAY
“texture2DArray”
ITEXTURE2D
“itexture2D”
ITEXTURE2DARRAY
“itexture2DArray”
UTEXTURE2D
“utexture2D”
UTEXTURE2DARRAY
“utexture2DArray”
TEXTURE2DRECT
“texture2DRect”
ITEXTURE2DRECT
“itexture2DRect”
UTEXTURE2DRECT
“utexture2DRect”
TEXTURE2DMS
“texture2DMS”
ITEXTURE2DMS
“itexture2DMS”
UTEXTURE2DMS
“utexture2DMS”
TEXTURE2DMSARRAY
“texture2DMSArray”
ITEXTURE2DMSARRAY
“itexture2DMSArray”
UTEXTURE2DMSARRAY
“utexture2DMSArray”
TEXTURE3D
“texture3D”
ITEXTURE3D
“itexture3D”
UTEXTURE3D
“utexture3D”
TEXTURECUBE
“textureCube”
ITEXTURECUBE
“itextureCube”
UTEXTURECUBE
“utextureCube”
TEXTURECUBEARRAY
“textureCubeArray”
ITEXTURECUBEARRAY
“itextureCubeArray”
UTEXTURECUBEARRAY
“utextureCubeArray”
TEXTUREBUFFER
“textureBuffer”
ITEXTUREBUFFER
“itextureBuffer”
UTEXTUREBUFFER
“utextureBuffer”
SAMPLER
“sampler”
SAMPLERSHADOW
“samplerShadow”
SUBPASSINPUT
“subpassInput”
ISUBPASSINPUT
“isubpassInput”
USUBPASSINPUT
“usubpassInput”
SUBPASSINPUTMS
“subpassInputMS”
ISUBPASSINPUTMS
“isubpassInputMS”
USUBPASSINPUTMS
“usubpassInputMS”
RESERVED(TypeNameAtom)
Reserved for future use
OTHER(TypeNameAtom)
Generic type name
Implementations§
source§impl TypeName
impl TypeName
fn gate( self, version_gate: bool, reserved_gate: bool, atom: TypeNameAtom, is_type_name: impl Fn(&TypeNameAtom) -> TypeNameState, ) -> Option<(Self, Option<TypeNameState>)>
pub(crate) fn parse( name: &str, version: u16, target_vulkan: bool, is_type_name: impl Fn(&TypeNameAtom) -> TypeNameState, ) -> Option<(Self, Option<TypeNameState>)>
Trait Implementations§
source§impl Ord for TypeName
impl Ord for TypeName
source§impl PartialEq for TypeName
impl PartialEq for TypeName
source§impl PartialOrd for TypeName
impl PartialOrd for TypeName
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TypeName
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more