Skip to main content

BuiltIn

Enum BuiltIn 

Source
#[repr(u32)]
pub enum BuiltIn {
Show 128 variants Position = 0, PointSize = 1, ClipDistance = 3, CullDistance = 4, VertexId = 5, InstanceId = 6, PrimitiveId = 7, InvocationId = 8, Layer = 9, ViewportIndex = 10, TessLevelOuter = 11, TessLevelInner = 12, TessCoord = 13, PatchVertices = 14, FragCoord = 15, PointCoord = 16, FrontFacing = 17, SampleId = 18, SamplePosition = 19, SampleMask = 20, FragDepth = 22, HelperInvocation = 23, NumWorkgroups = 24, WorkgroupSize = 25, WorkgroupId = 26, LocalInvocationId = 27, GlobalInvocationId = 28, LocalInvocationIndex = 29, WorkDim = 30, GlobalSize = 31, EnqueuedWorkgroupSize = 32, GlobalOffset = 33, GlobalLinearId = 34, SubgroupSize = 36, SubgroupMaxSize = 37, NumSubgroups = 38, NumEnqueuedSubgroups = 39, SubgroupId = 40, SubgroupLocalInvocationId = 41, VertexIndex = 42, InstanceIndex = 43, CoreIDARM = 4_160, CoreCountARM = 4_161, CoreMaxIDARM = 4_162, WarpIDARM = 4_163, WarpMaxIDARM = 4_164, SubgroupEqMask = 4_416, SubgroupGeMask = 4_417, SubgroupGtMask = 4_418, SubgroupLeMask = 4_419, SubgroupLtMask = 4_420, BaseVertex = 4_424, BaseInstance = 4_425, DrawIndex = 4_426, PrimitiveShadingRateKHR = 4_432, DeviceIndex = 4_438, ViewIndex = 4_440, ShadingRateKHR = 4_444, TileOffsetQCOM = 4_492, TileDimensionQCOM = 4_493, TileApronSizeQCOM = 4_494, BaryCoordNoPerspAMD = 4_992, BaryCoordNoPerspCentroidAMD = 4_993, BaryCoordNoPerspSampleAMD = 4_994, BaryCoordSmoothAMD = 4_995, BaryCoordSmoothCentroidAMD = 4_996, BaryCoordSmoothSampleAMD = 4_997, BaryCoordPullModelAMD = 4_998, FragStencilRefEXT = 5_014, RemainingRecursionLevelsAMDX = 5_021, ShaderIndexAMDX = 5_073, SamplerHeapEXT = 5_122, ResourceHeapEXT = 5_123, ViewportMaskNV = 5_253, SecondaryPositionNV = 5_257, SecondaryViewportMaskNV = 5_258, PositionPerViewNV = 5_261, ViewportMaskPerViewNV = 5_262, FullyCoveredEXT = 5_264, TaskCountNV = 5_274, PrimitiveCountNV = 5_275, PrimitiveIndicesNV = 5_276, ClipDistancePerViewNV = 5_277, CullDistancePerViewNV = 5_278, LayerPerViewNV = 5_279, MeshViewCountNV = 5_280, MeshViewIndicesNV = 5_281, BaryCoordKHR = 5_286, BaryCoordNoPerspKHR = 5_287, FragSizeEXT = 5_292, FragInvocationCountEXT = 5_293, PrimitivePointIndicesEXT = 5_294, PrimitiveLineIndicesEXT = 5_295, PrimitiveTriangleIndicesEXT = 5_296, CullPrimitiveEXT = 5_299, LaunchIdKHR = 5_319, LaunchSizeKHR = 5_320, WorldRayOriginKHR = 5_321, WorldRayDirectionKHR = 5_322, ObjectRayOriginKHR = 5_323, ObjectRayDirectionKHR = 5_324, RayTminKHR = 5_325, RayTmaxKHR = 5_326, InstanceCustomIndexKHR = 5_327, ObjectToWorldKHR = 5_330, WorldToObjectKHR = 5_331, HitTNV = 5_332, HitKindKHR = 5_333, CurrentRayTimeNV = 5_334, HitTriangleVertexPositionsKHR = 5_335, HitMicroTriangleVertexPositionsNV = 5_337, HitMicroTriangleVertexBarycentricsNV = 5_344, IncomingRayFlagsKHR = 5_351, RayGeometryIndexKHR = 5_352, HitIsSphereNV = 5_359, HitIsLSSNV = 5_360, HitSpherePositionNV = 5_361, WarpsPerSMNV = 5_374, SMCountNV = 5_375, WarpIDNV = 5_376, SMIDNV = 5_377, HitLSSPositionsNV = 5_396, HitKindFrontFacingMicroTriangleNV = 5_405, HitKindBackFacingMicroTriangleNV = 5_406, HitSphereRadiusNV = 5_420, HitLSSRadiiNV = 5_421, ClusterIDNV = 5_436, CullMaskKHR = 6_021,
}
Expand description

SPIR-V operand kind: BuiltIn

Variants§

§

Position = 0

§

PointSize = 1

§

ClipDistance = 3

§

CullDistance = 4

§

VertexId = 5

§

InstanceId = 6

§

PrimitiveId = 7

§

InvocationId = 8

§

Layer = 9

§

ViewportIndex = 10

§

TessLevelOuter = 11

§

TessLevelInner = 12

§

TessCoord = 13

§

PatchVertices = 14

§

FragCoord = 15

§

PointCoord = 16

§

FrontFacing = 17

§

SampleId = 18

§

SamplePosition = 19

§

SampleMask = 20

§

FragDepth = 22

§

HelperInvocation = 23

§

NumWorkgroups = 24

§

WorkgroupSize = 25

§

WorkgroupId = 26

§

LocalInvocationId = 27

§

GlobalInvocationId = 28

§

LocalInvocationIndex = 29

§

WorkDim = 30

§

GlobalSize = 31

§

EnqueuedWorkgroupSize = 32

§

GlobalOffset = 33

§

GlobalLinearId = 34

§

SubgroupSize = 36

§

SubgroupMaxSize = 37

§

NumSubgroups = 38

§

NumEnqueuedSubgroups = 39

§

SubgroupId = 40

§

SubgroupLocalInvocationId = 41

§

VertexIndex = 42

§

InstanceIndex = 43

§

CoreIDARM = 4_160

§

CoreCountARM = 4_161

§

CoreMaxIDARM = 4_162

§

WarpIDARM = 4_163

§

WarpMaxIDARM = 4_164

§

SubgroupEqMask = 4_416

§

SubgroupGeMask = 4_417

§

SubgroupGtMask = 4_418

§

SubgroupLeMask = 4_419

§

SubgroupLtMask = 4_420

§

BaseVertex = 4_424

§

BaseInstance = 4_425

§

DrawIndex = 4_426

§

PrimitiveShadingRateKHR = 4_432

§

DeviceIndex = 4_438

§

ViewIndex = 4_440

§

ShadingRateKHR = 4_444

§

TileOffsetQCOM = 4_492

§

TileDimensionQCOM = 4_493

§

TileApronSizeQCOM = 4_494

§

BaryCoordNoPerspAMD = 4_992

§

BaryCoordNoPerspCentroidAMD = 4_993

§

BaryCoordNoPerspSampleAMD = 4_994

§

BaryCoordSmoothAMD = 4_995

§

BaryCoordSmoothCentroidAMD = 4_996

§

BaryCoordSmoothSampleAMD = 4_997

§

BaryCoordPullModelAMD = 4_998

§

FragStencilRefEXT = 5_014

§

RemainingRecursionLevelsAMDX = 5_021

§

ShaderIndexAMDX = 5_073

§

SamplerHeapEXT = 5_122

§

ResourceHeapEXT = 5_123

§

ViewportMaskNV = 5_253

§

SecondaryPositionNV = 5_257

§

SecondaryViewportMaskNV = 5_258

§

PositionPerViewNV = 5_261

§

ViewportMaskPerViewNV = 5_262

§

FullyCoveredEXT = 5_264

§

TaskCountNV = 5_274

§

PrimitiveCountNV = 5_275

§

PrimitiveIndicesNV = 5_276

§

ClipDistancePerViewNV = 5_277

§

CullDistancePerViewNV = 5_278

§

LayerPerViewNV = 5_279

§

MeshViewCountNV = 5_280

§

MeshViewIndicesNV = 5_281

§

BaryCoordKHR = 5_286

§

BaryCoordNoPerspKHR = 5_287

§

FragSizeEXT = 5_292

§

FragInvocationCountEXT = 5_293

§

PrimitivePointIndicesEXT = 5_294

§

PrimitiveLineIndicesEXT = 5_295

§

PrimitiveTriangleIndicesEXT = 5_296

§

CullPrimitiveEXT = 5_299

§

LaunchIdKHR = 5_319

§

LaunchSizeKHR = 5_320

§

WorldRayOriginKHR = 5_321

§

WorldRayDirectionKHR = 5_322

§

ObjectRayOriginKHR = 5_323

§

ObjectRayDirectionKHR = 5_324

§

RayTminKHR = 5_325

§

RayTmaxKHR = 5_326

§

InstanceCustomIndexKHR = 5_327

§

ObjectToWorldKHR = 5_330

§

WorldToObjectKHR = 5_331

§

HitTNV = 5_332

§

HitKindKHR = 5_333

§

CurrentRayTimeNV = 5_334

§

HitTriangleVertexPositionsKHR = 5_335

§

HitMicroTriangleVertexPositionsNV = 5_337

§

HitMicroTriangleVertexBarycentricsNV = 5_344

§

IncomingRayFlagsKHR = 5_351

§

RayGeometryIndexKHR = 5_352

§

HitIsSphereNV = 5_359

§

HitIsLSSNV = 5_360

§

HitSpherePositionNV = 5_361

§

WarpsPerSMNV = 5_374

§

SMCountNV = 5_375

§

WarpIDNV = 5_376

§

SMIDNV = 5_377

§

HitLSSPositionsNV = 5_396

§

HitKindFrontFacingMicroTriangleNV = 5_405

§

HitKindBackFacingMicroTriangleNV = 5_406

§

HitSphereRadiusNV = 5_420

§

HitLSSRadiiNV = 5_421

§

ClusterIDNV = 5_436

§

CullMaskKHR = 6_021

Implementations§

Source§

impl BuiltIn

Source

pub fn from_u32(n: u32) -> Option<Self>

Source§

impl BuiltIn

Source

pub const SubgroupEqMaskKHR: Self = Self::SubgroupEqMask

Source

pub const SubgroupGeMaskKHR: Self = Self::SubgroupGeMask

Source

pub const SubgroupGtMaskKHR: Self = Self::SubgroupGtMask

Source

pub const SubgroupLeMaskKHR: Self = Self::SubgroupLeMask

Source

pub const SubgroupLtMaskKHR: Self = Self::SubgroupLtMask

Source

pub const BaryCoordNV: Self = Self::BaryCoordKHR

Source

pub const BaryCoordNoPerspNV: Self = Self::BaryCoordNoPerspKHR

Source

pub const FragmentSizeNV: Self = Self::FragSizeEXT

Source

pub const InvocationsPerPixelNV: Self = Self::FragInvocationCountEXT

Source

pub const LaunchIdNV: Self = Self::LaunchIdKHR

Source

pub const LaunchSizeNV: Self = Self::LaunchSizeKHR

Source

pub const WorldRayOriginNV: Self = Self::WorldRayOriginKHR

Source

pub const WorldRayDirectionNV: Self = Self::WorldRayDirectionKHR

Source

pub const ObjectRayOriginNV: Self = Self::ObjectRayOriginKHR

Source

pub const ObjectRayDirectionNV: Self = Self::ObjectRayDirectionKHR

Source

pub const RayTminNV: Self = Self::RayTminKHR

Source

pub const RayTmaxNV: Self = Self::RayTmaxKHR

Source

pub const InstanceCustomIndexNV: Self = Self::InstanceCustomIndexKHR

Source

pub const ObjectToWorldNV: Self = Self::ObjectToWorldKHR

Source

pub const WorldToObjectNV: Self = Self::WorldToObjectKHR

Source

pub const HitKindNV: Self = Self::HitKindKHR

Source

pub const IncomingRayFlagsNV: Self = Self::IncomingRayFlagsKHR

Trait Implementations§

Source§

impl Clone for BuiltIn

Source§

fn clone(&self) -> BuiltIn

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BuiltIn

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BuiltIn

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl FromStr for BuiltIn

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for BuiltIn

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for BuiltIn

Source§

fn cmp(&self, other: &BuiltIn) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for BuiltIn

Source§

fn eq(&self, other: &BuiltIn) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for BuiltIn

Source§

fn partial_cmp(&self, other: &BuiltIn) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for BuiltIn

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for BuiltIn

Source§

impl Eq for BuiltIn

Source§

impl StructuralPartialEq for BuiltIn

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,