pub enum BuiltinValue {
Show 15 variants
VertexIndex,
InstanceIndex,
ClipDistances,
Position,
FrontFacing,
FragDepth,
SampleIndex,
SampleMask,
LocalInvocationId,
LocalInvocationIndex,
GlobalInvocationId,
WorkgroupId,
NumWorkgroups,
SubgroupInvocationId,
SubgroupSize,
}
Variants§
VertexIndex
InstanceIndex
ClipDistances
Position
FrontFacing
FragDepth
SampleIndex
SampleMask
LocalInvocationId
LocalInvocationIndex
GlobalInvocationId
WorkgroupId
NumWorkgroups
SubgroupInvocationId
SubgroupSize
Implementations§
Source§impl BuiltinValue
impl BuiltinValue
Sourcepub const fn is_vertex_index(&self) -> bool
pub const fn is_vertex_index(&self) -> bool
Returns true
if this value is of type VertexIndex
. Returns false
otherwise
Sourcepub const fn is_instance_index(&self) -> bool
pub const fn is_instance_index(&self) -> bool
Returns true
if this value is of type InstanceIndex
. Returns false
otherwise
Sourcepub const fn is_clip_distances(&self) -> bool
pub const fn is_clip_distances(&self) -> bool
Returns true
if this value is of type ClipDistances
. Returns false
otherwise
Sourcepub const fn is_position(&self) -> bool
pub const fn is_position(&self) -> bool
Returns true
if this value is of type Position
. Returns false
otherwise
Sourcepub const fn is_front_facing(&self) -> bool
pub const fn is_front_facing(&self) -> bool
Returns true
if this value is of type FrontFacing
. Returns false
otherwise
Sourcepub const fn is_frag_depth(&self) -> bool
pub const fn is_frag_depth(&self) -> bool
Returns true
if this value is of type FragDepth
. Returns false
otherwise
Sourcepub const fn is_sample_index(&self) -> bool
pub const fn is_sample_index(&self) -> bool
Returns true
if this value is of type SampleIndex
. Returns false
otherwise
Sourcepub const fn is_sample_mask(&self) -> bool
pub const fn is_sample_mask(&self) -> bool
Returns true
if this value is of type SampleMask
. Returns false
otherwise
Sourcepub const fn is_local_invocation_id(&self) -> bool
pub const fn is_local_invocation_id(&self) -> bool
Returns true
if this value is of type LocalInvocationId
. Returns false
otherwise
Sourcepub const fn is_local_invocation_index(&self) -> bool
pub const fn is_local_invocation_index(&self) -> bool
Returns true
if this value is of type LocalInvocationIndex
. Returns false
otherwise
Sourcepub const fn is_global_invocation_id(&self) -> bool
pub const fn is_global_invocation_id(&self) -> bool
Returns true
if this value is of type GlobalInvocationId
. Returns false
otherwise
Sourcepub const fn is_workgroup_id(&self) -> bool
pub const fn is_workgroup_id(&self) -> bool
Returns true
if this value is of type WorkgroupId
. Returns false
otherwise
Sourcepub const fn is_num_workgroups(&self) -> bool
pub const fn is_num_workgroups(&self) -> bool
Returns true
if this value is of type NumWorkgroups
. Returns false
otherwise
Sourcepub const fn is_subgroup_invocation_id(&self) -> bool
pub const fn is_subgroup_invocation_id(&self) -> bool
Returns true
if this value is of type SubgroupInvocationId
. Returns false
otherwise
Sourcepub const fn is_subgroup_size(&self) -> bool
pub const fn is_subgroup_size(&self) -> bool
Returns true
if this value is of type SubgroupSize
. Returns false
otherwise
Trait Implementations§
Source§impl Clone for BuiltinValue
impl Clone for BuiltinValue
Source§fn clone(&self) -> BuiltinValue
fn clone(&self) -> BuiltinValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BuiltinValue
impl Debug for BuiltinValue
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
Source§impl FromStr for BuiltinValue
impl FromStr for BuiltinValue
Source§impl PartialEq for BuiltinValue
impl PartialEq for BuiltinValue
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
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>
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