spirv_utils::desc

Enum Op

Source
#[repr(u16)]
pub enum Op {
Show 294 variants Nop = 0, Undef = 1, SourceContinued = 2, Source = 3, SourceExtension = 4, Name = 5, MemberName = 6, String = 7, Line = 8, Extension = 10, ExtInstImport = 11, ExtInst = 12, MemoryModel = 14, EntryPoint = 15, ExecutionMode = 16, Capability = 17, TypeVoid = 19, TypeBool = 20, TypeInt = 21, TypeFloat = 22, TypeVector = 23, TypeMatrix = 24, TypeImage = 25, TypeSampler = 26, TypeSampledImage = 27, TypeArray = 28, TypeRuntimeArray = 29, TypeStruct = 30, TypeOpaque = 31, TypePointer = 32, TypeFunction = 33, TypeEvent = 34, TypeDeviceEvent = 35, TypeReserveId = 36, TypeQueue = 37, TypePipe = 38, TypeForwardPointer = 39, ConstantTrue = 41, ConstantFalse = 42, Constant = 43, ConstantComposite = 44, ConstantSampler = 45, ConstantNull = 46, SpecConstantTrue = 48, SpecConstantFalse = 49, SpecConstant = 50, SpecConstantComposite = 51, SpecConstantOp = 52, Function = 54, FunctionParameter = 55, FunctionEnd = 56, FunctionCall = 57, Variable = 59, ImageTexelPointer = 60, Load = 61, Store = 62, CopyMemory = 63, CopyMemorySized = 64, AccessChain = 65, InBoundsAccessChain = 66, PtrAccessChain = 67, ArrayLength = 68, GenericPtrMemSemantics = 69, InBoundsPtrAccessChain = 70, Decorate = 71, MemberDecorate = 72, DecorationGroup = 73, GroupDecorate = 74, GroupMemberDecorate = 75, VectorExtractDynamic = 77, VectorInsertDynamic = 78, VectorShuffle = 79, CompositeConstruct = 80, CompositeExtract = 81, CompositeInsert = 82, CopyObject = 83, Transpose = 84, SampledImage = 86, ImageSampleImplicitLod = 87, ImageSampleExplicitLod = 88, ImageSampleDrefImplicitLod = 89, ImageSampleDrefExplicitLod = 90, ImageSampleProjImplicitLod = 91, ImageSampleProjExplicitLod = 92, ImageSampleProjDrefImplicitLod = 93, ImageSampleProjDrefExplicitLod = 94, ImageFetch = 95, ImageGather = 96, ImageDrefGather = 97, ImageRead = 98, ImageWrite = 99, Image = 100, ImageQueryFormat = 101, ImageQueryOrder = 102, ImageQuerySizeLod = 103, ImageQuerySize = 104, ImageQueryLod = 105, ImageQueryLevels = 106, ImageQuerySamples = 107, ConvertFToU = 109, ConvertFToS = 110, ConvertSToF = 111, ConvertUToF = 112, UConvert = 113, SConvert = 114, FConvert = 115, QuantizeToF16 = 116, ConvertPtrToU = 117, SatConvertSToU = 118, SatConvertUToS = 119, ConvertUToPtr = 120, PtrCastToGeneric = 121, GenericCastToPtr = 122, GenericCastToPtrExplicit = 123, Bitcast = 124, SNegate = 126, FNegate = 127, IAdd = 128, FAdd = 129, ISub = 130, FSub = 131, IMul = 132, FMul = 133, UDiv = 134, SDiv = 135, FDiv = 136, UMod = 137, SRem = 138, SMod = 139, FRem = 140, FMod = 141, VectorTimesScalar = 142, MatrixTimesScalar = 143, VectorTimesMatrix = 144, MatrixTimesVector = 145, MatrixTimesMatrix = 146, OuterProduct = 147, Dot = 148, IAddCarry = 149, ISubBorrow = 150, UMulExtended = 151, SMulExtended = 152, Any = 154, All = 155, IsNan = 156, IsInf = 157, IsFinite = 158, IsNormal = 159, SignBitSet = 160, LessOrGreater = 161, Ordered = 162, Unordered = 163, LogicalEqual = 164, LogicalNotEqual = 165, LogicalOr = 166, LogicalAnd = 167, LogicalNot = 168, Select = 169, IEqual = 170, INotEqual = 171, UGreaterThan = 172, SGreaterThan = 173, UGreaterThanEqual = 174, SGreaterThanEqual = 175, ULessThan = 176, SLessThan = 177, ULessThanEqual = 178, SLessThanEqual = 179, FOrdEqual = 180, FUnordEqual = 181, FOrdNotEqual = 182, FUnordNotEqual = 183, FOrdLessThan = 184, FUnordLessThan = 185, FOrdGreaterThan = 186, FUnordGreaterThan = 187, FOrdLessThanEqual = 188, FUnordLessThanEqual = 189, FOrdGreaterThanEqual = 190, FUnordGreaterThanEqual = 191, ShiftRightLogical = 194, ShiftRightArithmetic = 195, ShiftLeftLogical = 196, BitwiseOr = 197, BitwiseXor = 198, BitwiseAnd = 199, Not = 200, BitFieldInsert = 201, BitFieldSExtract = 202, BitFieldUExtract = 203, BitReverse = 204, BitCount = 205, DPdx = 207, DPdy = 208, Fwidth = 209, DPdxFine = 210, DPdyFine = 211, FwidthFine = 212, DPdxCoarse = 213, DPdyCoarse = 214, FwidthCoarse = 215, EmitVertex = 218, EndPrimitive = 219, EmitStreamVertex = 220, EndStreamPrimitive = 221, ControlBarrier = 224, MemoryBarrier = 225, AtomicLoad = 227, AtomicStore = 228, AtomicExchange = 229, AtomicCompareExchange = 230, AtomicCompareExchangeWeak = 231, AtomicIIncrement = 232, AtomicIDecrement = 233, AtomicIAdd = 234, AtomicISub = 235, AtomicSMin = 236, AtomicUMin = 237, AtomicSMax = 238, AtomicUMax = 239, AtomicAnd = 240, AtomicOr = 241, AtomicXor = 242, Phi = 245, LoopMerge = 246, SelectionMerge = 247, Label = 248, Branch = 249, BranchConditional = 250, Switch = 251, Kill = 252, Return = 253, ReturnValue = 254, Unreachable = 255, LifetimeStart = 256, LifetimeStop = 257, GroupAsyncCopy = 259, GroupWaitEvents = 260, GroupAll = 261, GroupAny = 262, GroupBroadcast = 263, GroupIAdd = 264, GroupFAdd = 265, GroupFMin = 266, GroupUMin = 267, GroupSMin = 268, GroupFMax = 269, GroupUMax = 270, GroupSMax = 271, ReadPipe = 274, WritePipe = 275, ReservedReadPipe = 276, ReservedWritePipe = 277, ReserveReadPipePackets = 278, ReserveWritePipePackets = 279, CommitReadPipe = 280, CommitWritePipe = 281, IsValidReserveId = 282, GetNumPipePackets = 283, GetMaxPipePackets = 284, GroupReserveReadPipePackets = 285, GroupReserveWritePipePackets = 286, GroupCommitReadPipe = 287, GroupCommitWritePipe = 288, EnqueueMarker = 291, EnqueueKernel = 292, GetKernelNDrangeSubGroupCount = 293, GetKernelNDrangeMaxSubGroupSize = 294, GetKernelWorkGroupSize = 295, GetKernelPreferredWorkGroupSizeMultiple = 296, RetainEvent = 297, ReleaseEvent = 298, CreateUserEvent = 299, IsValidEvent = 300, SetUserEventStatus = 301, CaptureEventProfilingInfo = 302, GetDefaultQueue = 303, BuildNDRange = 304, ImageSparseSampleImplicitLod = 305, ImageSparseSampleExplicitLod = 306, ImageSparseSampleDrefImplicitLod = 307, ImageSparseSampleDrefExplicitLod = 308, ImageSparseSampleProjImplicitLod = 309, ImageSparseSampleProjExplicitLod = 310, ImageSparseSampleProjDrefImplicitLod = 311, ImageSparseSampleProjDrefExplicitLod = 312, ImageSparseFetch = 313, ImageSparseGather = 314, ImageSparseDrefGather = 315, ImageSparseTexelsResident = 316, NoLine = 317, AtomicFlagTestAndSet = 318, AtomicFlagClear = 319, ImageSparseRead = 320,
}

Variants§

§

Nop = 0

§

Undef = 1

§

SourceContinued = 2

§

Source = 3

§

SourceExtension = 4

§

Name = 5

§

MemberName = 6

§

String = 7

§

Line = 8

§

Extension = 10

§

ExtInstImport = 11

§

ExtInst = 12

§

MemoryModel = 14

§

EntryPoint = 15

§

ExecutionMode = 16

§

Capability = 17

§

TypeVoid = 19

§

TypeBool = 20

§

TypeInt = 21

§

TypeFloat = 22

§

TypeVector = 23

§

TypeMatrix = 24

§

TypeImage = 25

§

TypeSampler = 26

§

TypeSampledImage = 27

§

TypeArray = 28

§

TypeRuntimeArray = 29

§

TypeStruct = 30

§

TypeOpaque = 31

§

TypePointer = 32

§

TypeFunction = 33

§

TypeEvent = 34

§

TypeDeviceEvent = 35

§

TypeReserveId = 36

§

TypeQueue = 37

§

TypePipe = 38

§

TypeForwardPointer = 39

§

ConstantTrue = 41

§

ConstantFalse = 42

§

Constant = 43

§

ConstantComposite = 44

§

ConstantSampler = 45

§

ConstantNull = 46

§

SpecConstantTrue = 48

§

SpecConstantFalse = 49

§

SpecConstant = 50

§

SpecConstantComposite = 51

§

SpecConstantOp = 52

§

Function = 54

§

FunctionParameter = 55

§

FunctionEnd = 56

§

FunctionCall = 57

§

Variable = 59

§

ImageTexelPointer = 60

§

Load = 61

§

Store = 62

§

CopyMemory = 63

§

CopyMemorySized = 64

§

AccessChain = 65

§

InBoundsAccessChain = 66

§

PtrAccessChain = 67

§

ArrayLength = 68

§

GenericPtrMemSemantics = 69

§

InBoundsPtrAccessChain = 70

§

Decorate = 71

§

MemberDecorate = 72

§

DecorationGroup = 73

§

GroupDecorate = 74

§

GroupMemberDecorate = 75

§

VectorExtractDynamic = 77

§

VectorInsertDynamic = 78

§

VectorShuffle = 79

§

CompositeConstruct = 80

§

CompositeExtract = 81

§

CompositeInsert = 82

§

CopyObject = 83

§

Transpose = 84

§

SampledImage = 86

§

ImageSampleImplicitLod = 87

§

ImageSampleExplicitLod = 88

§

ImageSampleDrefImplicitLod = 89

§

ImageSampleDrefExplicitLod = 90

§

ImageSampleProjImplicitLod = 91

§

ImageSampleProjExplicitLod = 92

§

ImageSampleProjDrefImplicitLod = 93

§

ImageSampleProjDrefExplicitLod = 94

§

ImageFetch = 95

§

ImageGather = 96

§

ImageDrefGather = 97

§

ImageRead = 98

§

ImageWrite = 99

§

Image = 100

§

ImageQueryFormat = 101

§

ImageQueryOrder = 102

§

ImageQuerySizeLod = 103

§

ImageQuerySize = 104

§

ImageQueryLod = 105

§

ImageQueryLevels = 106

§

ImageQuerySamples = 107

§

ConvertFToU = 109

§

ConvertFToS = 110

§

ConvertSToF = 111

§

ConvertUToF = 112

§

UConvert = 113

§

SConvert = 114

§

FConvert = 115

§

QuantizeToF16 = 116

§

ConvertPtrToU = 117

§

SatConvertSToU = 118

§

SatConvertUToS = 119

§

ConvertUToPtr = 120

§

PtrCastToGeneric = 121

§

GenericCastToPtr = 122

§

GenericCastToPtrExplicit = 123

§

Bitcast = 124

§

SNegate = 126

§

FNegate = 127

§

IAdd = 128

§

FAdd = 129

§

ISub = 130

§

FSub = 131

§

IMul = 132

§

FMul = 133

§

UDiv = 134

§

SDiv = 135

§

FDiv = 136

§

UMod = 137

§

SRem = 138

§

SMod = 139

§

FRem = 140

§

FMod = 141

§

VectorTimesScalar = 142

§

MatrixTimesScalar = 143

§

VectorTimesMatrix = 144

§

MatrixTimesVector = 145

§

MatrixTimesMatrix = 146

§

OuterProduct = 147

§

Dot = 148

§

IAddCarry = 149

§

ISubBorrow = 150

§

UMulExtended = 151

§

SMulExtended = 152

§

Any = 154

§

All = 155

§

IsNan = 156

§

IsInf = 157

§

IsFinite = 158

§

IsNormal = 159

§

SignBitSet = 160

§

LessOrGreater = 161

§

Ordered = 162

§

Unordered = 163

§

LogicalEqual = 164

§

LogicalNotEqual = 165

§

LogicalOr = 166

§

LogicalAnd = 167

§

LogicalNot = 168

§

Select = 169

§

IEqual = 170

§

INotEqual = 171

§

UGreaterThan = 172

§

SGreaterThan = 173

§

UGreaterThanEqual = 174

§

SGreaterThanEqual = 175

§

ULessThan = 176

§

SLessThan = 177

§

ULessThanEqual = 178

§

SLessThanEqual = 179

§

FOrdEqual = 180

§

FUnordEqual = 181

§

FOrdNotEqual = 182

§

FUnordNotEqual = 183

§

FOrdLessThan = 184

§

FUnordLessThan = 185

§

FOrdGreaterThan = 186

§

FUnordGreaterThan = 187

§

FOrdLessThanEqual = 188

§

FUnordLessThanEqual = 189

§

FOrdGreaterThanEqual = 190

§

FUnordGreaterThanEqual = 191

§

ShiftRightLogical = 194

§

ShiftRightArithmetic = 195

§

ShiftLeftLogical = 196

§

BitwiseOr = 197

§

BitwiseXor = 198

§

BitwiseAnd = 199

§

Not = 200

§

BitFieldInsert = 201

§

BitFieldSExtract = 202

§

BitFieldUExtract = 203

§

BitReverse = 204

§

BitCount = 205

§

DPdx = 207

§

DPdy = 208

§

Fwidth = 209

§

DPdxFine = 210

§

DPdyFine = 211

§

FwidthFine = 212

§

DPdxCoarse = 213

§

DPdyCoarse = 214

§

FwidthCoarse = 215

§

EmitVertex = 218

§

EndPrimitive = 219

§

EmitStreamVertex = 220

§

EndStreamPrimitive = 221

§

ControlBarrier = 224

§

MemoryBarrier = 225

§

AtomicLoad = 227

§

AtomicStore = 228

§

AtomicExchange = 229

§

AtomicCompareExchange = 230

§

AtomicCompareExchangeWeak = 231

§

AtomicIIncrement = 232

§

AtomicIDecrement = 233

§

AtomicIAdd = 234

§

AtomicISub = 235

§

AtomicSMin = 236

§

AtomicUMin = 237

§

AtomicSMax = 238

§

AtomicUMax = 239

§

AtomicAnd = 240

§

AtomicOr = 241

§

AtomicXor = 242

§

Phi = 245

§

LoopMerge = 246

§

SelectionMerge = 247

§

Label = 248

§

Branch = 249

§

BranchConditional = 250

§

Switch = 251

§

Kill = 252

§

Return = 253

§

ReturnValue = 254

§

Unreachable = 255

§

LifetimeStart = 256

§

LifetimeStop = 257

§

GroupAsyncCopy = 259

§

GroupWaitEvents = 260

§

GroupAll = 261

§

GroupAny = 262

§

GroupBroadcast = 263

§

GroupIAdd = 264

§

GroupFAdd = 265

§

GroupFMin = 266

§

GroupUMin = 267

§

GroupSMin = 268

§

GroupFMax = 269

§

GroupUMax = 270

§

GroupSMax = 271

§

ReadPipe = 274

§

WritePipe = 275

§

ReservedReadPipe = 276

§

ReservedWritePipe = 277

§

ReserveReadPipePackets = 278

§

ReserveWritePipePackets = 279

§

CommitReadPipe = 280

§

CommitWritePipe = 281

§

IsValidReserveId = 282

§

GetNumPipePackets = 283

§

GetMaxPipePackets = 284

§

GroupReserveReadPipePackets = 285

§

GroupReserveWritePipePackets = 286

§

GroupCommitReadPipe = 287

§

GroupCommitWritePipe = 288

§

EnqueueMarker = 291

§

EnqueueKernel = 292

§

GetKernelNDrangeSubGroupCount = 293

§

GetKernelNDrangeMaxSubGroupSize = 294

§

GetKernelWorkGroupSize = 295

§

GetKernelPreferredWorkGroupSizeMultiple = 296

§

RetainEvent = 297

§

ReleaseEvent = 298

§

CreateUserEvent = 299

§

IsValidEvent = 300

§

SetUserEventStatus = 301

§

CaptureEventProfilingInfo = 302

§

GetDefaultQueue = 303

§

BuildNDRange = 304

§

ImageSparseSampleImplicitLod = 305

§

ImageSparseSampleExplicitLod = 306

§

ImageSparseSampleDrefImplicitLod = 307

§

ImageSparseSampleDrefExplicitLod = 308

§

ImageSparseSampleProjImplicitLod = 309

§

ImageSparseSampleProjExplicitLod = 310

§

ImageSparseSampleProjDrefImplicitLod = 311

§

ImageSparseSampleProjDrefExplicitLod = 312

§

ImageSparseFetch = 313

§

ImageSparseGather = 314

§

ImageSparseDrefGather = 315

§

ImageSparseTexelsResident = 316

§

NoLine = 317

§

AtomicFlagTestAndSet = 318

§

AtomicFlagClear = 319

§

ImageSparseRead = 320

Implementations§

Source§

impl Op

Source

pub fn from(val: u16) -> Option<Op>

Trait Implementations§

Source§

impl Clone for Op

Source§

fn clone(&self) -> Op

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Op

Source§

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

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

impl Hash for Op

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 PartialEq for Op

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Copy for Op

Source§

impl StructuralPartialEq for Op

Auto Trait Implementations§

§

impl Freeze for Op

§

impl RefUnwindSafe for Op

§

impl Send for Op

§

impl Sync for Op

§

impl Unpin for Op

§

impl UnwindSafe for Op

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.