pub enum BuiltinValue {
Show 41 variants
VertexIndex,
InstanceIndex,
ClipDistances,
Position,
FrontFacing,
FragDepth,
SampleIndex,
SampleMask,
LocalInvocationId,
LocalInvocationIndex,
GlobalInvocationId,
WorkgroupId,
NumWorkgroups,
SubgroupInvocationId,
SubgroupSize,
SubgroupId,
NumSubgroups,
PrimitiveIndex,
Barycentric,
BarycentricNoPerspective,
ViewIndex,
MeshTaskSize,
Vertices,
Primitives,
VertexCount,
PrimitiveCount,
TriangleIndices,
CullPrimitive,
RayInvocationId,
NumRayInvocations,
InstanceCustomData,
GeometryIndex,
WorldRayOrigin,
WorldRayDirection,
ObjectRayOrigin,
ObjectRayDirection,
RayTMin,
RayTCurrentMax,
ObjectToWorld,
WorldToObject,
HitKind,
}Expand description
Built-in value names.
Context-dependent tokens.
Variants§
VertexIndex
InstanceIndex
ClipDistances
Position
FrontFacing
FragDepth
SampleIndex
SampleMask
LocalInvocationId
LocalInvocationIndex
GlobalInvocationId
WorkgroupId
NumWorkgroups
SubgroupInvocationId
SubgroupSize
SubgroupId
naga-ext only.NumSubgroups
naga-ext only.PrimitiveIndex
naga-ext only.Barycentric
naga-ext only.BarycentricNoPerspective
naga-ext only.requires WGSL extension barycentric
ViewIndex
naga-ext only.requires WGSL extension barycentric
MeshTaskSize
naga-ext only.Vertices
naga-ext only.Primitives
naga-ext only.VertexCount
naga-ext only.PrimitiveCount
naga-ext only.TriangleIndices
naga-ext only.CullPrimitive
naga-ext only.RayInvocationId
naga-ext only.vec3<u32>, available in all ray tracing stages.
NumRayInvocations
naga-ext only.vec3<u32>, available in all ray tracing stages.
InstanceCustomData
naga-ext only.u32, available in the any_hit and closest_hit stages.
GeometryIndex
naga-ext only.u32, available in the any_hit and closest_hit stages.
WorldRayOrigin
naga-ext only.vec3<f32>, available in the any_hit, closest_hit and miss stages.
WorldRayDirection
naga-ext only.vec3<f32>, available in the any_hit, closest_hit and miss stages.
ObjectRayOrigin
naga-ext only.vec3<f32>, available in the any_hit and closest_hit stages.
ObjectRayDirection
naga-ext only.vec3<f32>, available in the any_hit and closest_hit stages.
RayTMin
naga-ext only.f32, available in the any_hit, closest_hit and miss stages.
RayTCurrentMax
naga-ext only.f32, available in the any_hit, closest_hit and miss stages.
ObjectToWorld
naga-ext only.mat4x3<f32>, available in the any_hit and closest_hit stages.
WorldToObject
naga-ext only.mat4x3<f32>, available in the any_hit and closest_hit stages.
HitKind
naga-ext only.u32, available in the any_hit and closest_hit stages.
Trait Implementations§
Source§impl Clone for BuiltinValue
impl Clone for BuiltinValue
Source§fn clone(&self) -> BuiltinValue
fn clone(&self) -> BuiltinValue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BuiltinValue
Source§impl Debug for BuiltinValue
impl Debug for BuiltinValue
Source§impl<'de> Deserialize<'de> for BuiltinValue
impl<'de> Deserialize<'de> for BuiltinValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuiltinValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuiltinValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for BuiltinValue
impl Display for BuiltinValue
impl Eq for BuiltinValue
Source§impl From<BuiltinValue> for Attribute
impl From<BuiltinValue> for Attribute
Source§fn from(value: BuiltinValue) -> Self
fn from(value: BuiltinValue) -> Self
Source§impl FromStr for BuiltinValue
impl FromStr for BuiltinValue
Source§impl PartialEq for BuiltinValue
impl PartialEq for BuiltinValue
Source§impl Serialize for BuiltinValue
impl Serialize for BuiltinValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for BuiltinValue
Source§impl TokRepr for BuiltinValue
impl TokRepr for BuiltinValue
fn tok_repr(&self) -> TokenStream
Auto Trait Implementations§
impl Freeze for BuiltinValue
impl RefUnwindSafe for BuiltinValue
impl Send for BuiltinValue
impl Sync for BuiltinValue
impl Unpin for BuiltinValue
impl UnsafeUnpin for BuiltinValue
impl UnwindSafe for BuiltinValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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