pub enum BuiltinValue {
Show 19 variants
VertexIndex,
InstanceIndex,
ClipDistances,
Position,
FrontFacing,
FragDepth,
SampleIndex,
SampleMask,
LocalInvocationId,
LocalInvocationIndex,
GlobalInvocationId,
WorkgroupId,
NumWorkgroups,
SubgroupInvocationId,
SubgroupSize,
SubgroupId,
NumSubgroups,
PrimitiveIndex,
ViewIndex,
}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
Available on crate feature
naga-ext only.NumSubgroups
Available on crate feature
naga-ext only.PrimitiveIndex
Available on crate feature
naga-ext only.ViewIndex
Available on crate feature
naga-ext only.Trait Implementations§
Source§impl Clone for BuiltinValue
impl Clone for BuiltinValue
Source§fn clone(&self) -> BuiltinValue
fn clone(&self) -> BuiltinValue
Returns a duplicate 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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BuiltinValue
impl Display for BuiltinValue
Source§impl From<BuiltinValue> for Attribute
impl From<BuiltinValue> for Attribute
Source§fn from(value: BuiltinValue) -> Self
fn from(value: BuiltinValue) -> Self
Converts to this type from the input type.
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,
Serialize this value into the given Serde serializer. Read more
Source§impl TokRepr for BuiltinValue
impl TokRepr for BuiltinValue
fn tok_repr(&self) -> TokenStream
impl Copy for BuiltinValue
impl Eq for BuiltinValue
impl StructuralPartialEq for BuiltinValue
Auto Trait Implementations§
impl Freeze for BuiltinValue
impl RefUnwindSafe for BuiltinValue
impl Send for BuiltinValue
impl Sync for BuiltinValue
impl Unpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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