The first word of every SPIR-V instruction holds its opcode in the lower 16 bits. This
page lists every opcode in the SpvOp enum of Khronos’ spirv.h
header, for SPIR-V 1.6 (SPV_VERSION 0x10600): the core instructions and
those that extensions add.
The header gives 937 names to 879 opcode values. Where two names share a value, both
are in the same row. Names are shown without the Spv prefix the header
puts on them, so SpvOpNop is OpNop. Values that are not in a
table are not in the header either. The sections below only split the list by value.
Values 0 to 403
| Value | Name |
|---|---|
0 | OpNop |
1 | OpUndef |
2 | OpSourceContinued |
3 | OpSource |
4 | OpSourceExtension |
5 | OpName |
6 | OpMemberName |
7 | OpString |
8 | OpLine |
10 | OpExtension |
11 | OpExtInstImport |
12 | OpExtInst |
14 | OpMemoryModel |
15 | OpEntryPoint |
16 | OpExecutionMode |
17 | OpCapability |
19 | OpTypeVoid |
20 | OpTypeBool |
21 | OpTypeInt |
22 | OpTypeFloat |
23 | OpTypeVector |
24 | OpTypeMatrix |
25 | OpTypeImage |
26 | OpTypeSampler |
27 | OpTypeSampledImage |
28 | OpTypeArray |
29 | OpTypeRuntimeArray |
30 | OpTypeStruct |
31 | OpTypeOpaque |
32 | OpTypePointer |
33 | OpTypeFunction |
34 | OpTypeEvent |
35 | OpTypeDeviceEvent |
36 | OpTypeReserveId |
37 | OpTypeQueue |
38 | OpTypePipe |
39 | OpTypeForwardPointer |
41 | OpConstantTrue |
42 | OpConstantFalse |
43 | OpConstant |
44 | OpConstantComposite |
45 | OpConstantSampler |
46 | OpConstantNull |
48 | OpSpecConstantTrue |
49 | OpSpecConstantFalse |
50 | OpSpecConstant |
51 | OpSpecConstantComposite |
52 | OpSpecConstantOp |
54 | OpFunction |
55 | OpFunctionParameter |
56 | OpFunctionEnd |
57 | OpFunctionCall |
59 | OpVariable |
60 | OpImageTexelPointer |
61 | OpLoad |
62 | OpStore |
63 | OpCopyMemory |
64 | OpCopyMemorySized |
65 | OpAccessChain |
66 | OpInBoundsAccessChain |
67 | OpPtrAccessChain |
68 | OpArrayLength |
69 | OpGenericPtrMemSemantics |
70 | OpInBoundsPtrAccessChain |
71 | OpDecorate |
72 | OpMemberDecorate |
73 | OpDecorationGroup |
74 | OpGroupDecorate |
75 | OpGroupMemberDecorate |
77 | OpVectorExtractDynamic |
78 | OpVectorInsertDynamic |
79 | OpVectorShuffle |
80 | OpCompositeConstruct |
81 | OpCompositeExtract |
82 | OpCompositeInsert |
83 | OpCopyObject |
84 | OpTranspose |
86 | OpSampledImage |
87 | OpImageSampleImplicitLod |
88 | OpImageSampleExplicitLod |
89 | OpImageSampleDrefImplicitLod |
90 | OpImageSampleDrefExplicitLod |
91 | OpImageSampleProjImplicitLod |
92 | OpImageSampleProjExplicitLod |
93 | OpImageSampleProjDrefImplicitLod |
94 | OpImageSampleProjDrefExplicitLod |
95 | OpImageFetch |
96 | OpImageGather |
97 | OpImageDrefGather |
98 | OpImageRead |
99 | OpImageWrite |
100 | OpImage |
101 | OpImageQueryFormat |
102 | OpImageQueryOrder |
103 | OpImageQuerySizeLod |
104 | OpImageQuerySize |
105 | OpImageQueryLod |
106 | OpImageQueryLevels |
107 | OpImageQuerySamples |
109 | OpConvertFToU |
110 | OpConvertFToS |
111 | OpConvertSToF |
112 | OpConvertUToF |
113 | OpUConvert |
114 | OpSConvert |
115 | OpFConvert |
116 | OpQuantizeToF16 |
117 | OpConvertPtrToU |
118 | OpSatConvertSToU |
119 | OpSatConvertUToS |
120 | OpConvertUToPtr |
121 | OpPtrCastToGeneric |
122 | OpGenericCastToPtr |
123 | OpGenericCastToPtrExplicit |
124 | OpBitcast |
126 | OpSNegate |
127 | OpFNegate |
128 | OpIAdd |
129 | OpFAdd |
130 | OpISub |
131 | OpFSub |
132 | OpIMul |
133 | OpFMul |
134 | OpUDiv |
135 | OpSDiv |
136 | OpFDiv |
137 | OpUMod |
138 | OpSRem |
139 | OpSMod |
140 | OpFRem |
141 | OpFMod |
142 | OpVectorTimesScalar |
143 | OpMatrixTimesScalar |
144 | OpVectorTimesMatrix |
145 | OpMatrixTimesVector |
146 | OpMatrixTimesMatrix |
147 | OpOuterProduct |
148 | OpDot |
149 | OpIAddCarry |
150 | OpISubBorrow |
151 | OpUMulExtended |
152 | OpSMulExtended |
154 | OpAny |
155 | OpAll |
156 | OpIsNan |
157 | OpIsInf |
158 | OpIsFinite |
159 | OpIsNormal |
160 | OpSignBitSet |
161 | OpLessOrGreater |
162 | OpOrdered |
163 | OpUnordered |
164 | OpLogicalEqual |
165 | OpLogicalNotEqual |
166 | OpLogicalOr |
167 | OpLogicalAnd |
168 | OpLogicalNot |
169 | OpSelect |
170 | OpIEqual |
171 | OpINotEqual |
172 | OpUGreaterThan |
173 | OpSGreaterThan |
174 | OpUGreaterThanEqual |
175 | OpSGreaterThanEqual |
176 | OpULessThan |
177 | OpSLessThan |
178 | OpULessThanEqual |
179 | OpSLessThanEqual |
180 | OpFOrdEqual |
181 | OpFUnordEqual |
182 | OpFOrdNotEqual |
183 | OpFUnordNotEqual |
184 | OpFOrdLessThan |
185 | OpFUnordLessThan |
186 | OpFOrdGreaterThan |
187 | OpFUnordGreaterThan |
188 | OpFOrdLessThanEqual |
189 | OpFUnordLessThanEqual |
190 | OpFOrdGreaterThanEqual |
191 | OpFUnordGreaterThanEqual |
194 | OpShiftRightLogical |
195 | OpShiftRightArithmetic |
196 | OpShiftLeftLogical |
197 | OpBitwiseOr |
198 | OpBitwiseXor |
199 | OpBitwiseAnd |
200 | OpNot |
201 | OpBitFieldInsert |
202 | OpBitFieldSExtract |
203 | OpBitFieldUExtract |
204 | OpBitReverse |
205 | OpBitCount |
207 | OpDPdx |
208 | OpDPdy |
209 | OpFwidth |
210 | OpDPdxFine |
211 | OpDPdyFine |
212 | OpFwidthFine |
213 | OpDPdxCoarse |
214 | OpDPdyCoarse |
215 | OpFwidthCoarse |
218 | OpEmitVertex |
219 | OpEndPrimitive |
220 | OpEmitStreamVertex |
221 | OpEndStreamPrimitive |
224 | OpControlBarrier |
225 | OpMemoryBarrier |
227 | OpAtomicLoad |
228 | OpAtomicStore |
229 | OpAtomicExchange |
230 | OpAtomicCompareExchange |
231 | OpAtomicCompareExchangeWeak |
232 | OpAtomicIIncrement |
233 | OpAtomicIDecrement |
234 | OpAtomicIAdd |
235 | OpAtomicISub |
236 | OpAtomicSMin |
237 | OpAtomicUMin |
238 | OpAtomicSMax |
239 | OpAtomicUMax |
240 | OpAtomicAnd |
241 | OpAtomicOr |
242 | OpAtomicXor |
245 | OpPhi |
246 | OpLoopMerge |
247 | OpSelectionMerge |
248 | OpLabel |
249 | OpBranch |
250 | OpBranchConditional |
251 | OpSwitch |
252 | OpKill |
253 | OpReturn |
254 | OpReturnValue |
255 | OpUnreachable |
256 | OpLifetimeStart |
257 | OpLifetimeStop |
259 | OpGroupAsyncCopy |
260 | OpGroupWaitEvents |
261 | OpGroupAll |
262 | OpGroupAny |
263 | OpGroupBroadcast |
264 | OpGroupIAdd |
265 | OpGroupFAdd |
266 | OpGroupFMin |
267 | OpGroupUMin |
268 | OpGroupSMin |
269 | OpGroupFMax |
270 | OpGroupUMax |
271 | OpGroupSMax |
274 | OpReadPipe |
275 | OpWritePipe |
276 | OpReservedReadPipe |
277 | OpReservedWritePipe |
278 | OpReserveReadPipePackets |
279 | OpReserveWritePipePackets |
280 | OpCommitReadPipe |
281 | OpCommitWritePipe |
282 | OpIsValidReserveId |
283 | OpGetNumPipePackets |
284 | OpGetMaxPipePackets |
285 | OpGroupReserveReadPipePackets |
286 | OpGroupReserveWritePipePackets |
287 | OpGroupCommitReadPipe |
288 | OpGroupCommitWritePipe |
291 | OpEnqueueMarker |
292 | OpEnqueueKernel |
293 | OpGetKernelNDrangeSubGroupCount |
294 | OpGetKernelNDrangeMaxSubGroupSize |
295 | OpGetKernelWorkGroupSize |
296 | OpGetKernelPreferredWorkGroupSizeMultiple |
297 | OpRetainEvent |
298 | OpReleaseEvent |
299 | OpCreateUserEvent |
300 | OpIsValidEvent |
301 | OpSetUserEventStatus |
302 | OpCaptureEventProfilingInfo |
303 | OpGetDefaultQueue |
304 | OpBuildNDRange |
305 | OpImageSparseSampleImplicitLod |
306 | OpImageSparseSampleExplicitLod |
307 | OpImageSparseSampleDrefImplicitLod |
308 | OpImageSparseSampleDrefExplicitLod |
309 | OpImageSparseSampleProjImplicitLod |
310 | OpImageSparseSampleProjExplicitLod |
311 | OpImageSparseSampleProjDrefImplicitLod |
312 | OpImageSparseSampleProjDrefExplicitLod |
313 | OpImageSparseFetch |
314 | OpImageSparseGather |
315 | OpImageSparseDrefGather |
316 | OpImageSparseTexelsResident |
317 | OpNoLine |
318 | OpAtomicFlagTestAndSet |
319 | OpAtomicFlagClear |
320 | OpImageSparseRead |
321 | OpSizeOf |
322 | OpTypePipeStorage |
323 | OpConstantPipeStorage |
324 | OpCreatePipeFromPipeStorage |
325 | OpGetKernelLocalSizeForSubgroupCount |
326 | OpGetKernelMaxNumSubgroups |
327 | OpTypeNamedBarrier |
328 | OpNamedBarrierInitialize |
329 | OpMemoryNamedBarrier |
330 | OpModuleProcessed |
331 | OpExecutionModeId |
332 | OpDecorateId |
333 | OpGroupNonUniformElect |
334 | OpGroupNonUniformAll |
335 | OpGroupNonUniformAny |
336 | OpGroupNonUniformAllEqual |
337 | OpGroupNonUniformBroadcast |
338 | OpGroupNonUniformBroadcastFirst |
339 | OpGroupNonUniformBallot |
340 | OpGroupNonUniformInverseBallot |
341 | OpGroupNonUniformBallotBitExtract |
342 | OpGroupNonUniformBallotBitCount |
343 | OpGroupNonUniformBallotFindLSB |
344 | OpGroupNonUniformBallotFindMSB |
345 | OpGroupNonUniformShuffle |
346 | OpGroupNonUniformShuffleXor |
347 | OpGroupNonUniformShuffleUp |
348 | OpGroupNonUniformShuffleDown |
349 | OpGroupNonUniformIAdd |
350 | OpGroupNonUniformFAdd |
351 | OpGroupNonUniformIMul |
352 | OpGroupNonUniformFMul |
353 | OpGroupNonUniformSMin |
354 | OpGroupNonUniformUMin |
355 | OpGroupNonUniformFMin |
356 | OpGroupNonUniformSMax |
357 | OpGroupNonUniformUMax |
358 | OpGroupNonUniformFMax |
359 | OpGroupNonUniformBitwiseAnd |
360 | OpGroupNonUniformBitwiseOr |
361 | OpGroupNonUniformBitwiseXor |
362 | OpGroupNonUniformLogicalAnd |
363 | OpGroupNonUniformLogicalOr |
364 | OpGroupNonUniformLogicalXor |
365 | OpGroupNonUniformQuadBroadcast |
366 | OpGroupNonUniformQuadSwap |
400 | OpCopyLogical |
401 | OpPtrEqual |
402 | OpPtrNotEqual |
403 | OpPtrDiff |
Values 4160 to 4545
| Value | Name |
|---|---|
4160 | OpColorAttachmentReadEXT |
4161 | OpDepthAttachmentReadEXT |
4162 | OpStencilAttachmentReadEXT |
4163 | OpTypeTensorARM |
4164 | OpTensorReadARM |
4165 | OpTensorWriteARM |
4166 | OpTensorQuerySizeARM |
4181 | OpGraphConstantARM |
4182 | OpGraphEntryPointARM |
4183 | OpGraphARM |
4184 | OpGraphInputARM |
4185 | OpGraphSetOutputARM |
4186 | OpGraphEndARM |
4190 | OpTypeGraphARM |
4195 | OpBitcastExtractEXT |
4416 | OpTerminateInvocation |
4417 | OpTypeUntypedPointerKHR |
4418 | OpUntypedVariableKHR |
4419 | OpUntypedAccessChainKHR |
4420 | OpUntypedInBoundsAccessChainKHR |
4421 | OpSubgroupBallotKHR |
4422 | OpSubgroupFirstInvocationKHR |
4423 | OpUntypedPtrAccessChainKHR |
4424 | OpUntypedInBoundsPtrAccessChainKHR |
4425 | OpUntypedArrayLengthKHR |
4426 | OpUntypedPrefetchKHR |
4427 | OpFmaKHR |
4428 | OpSubgroupAllKHR |
4429 | OpSubgroupAnyKHR |
4430 | OpSubgroupAllEqualKHR |
4431 | OpGroupNonUniformRotateKHR |
4432 | OpSubgroupReadInvocationKHR |
4433 | OpExtInstWithForwardRefsKHR |
4434 | OpUntypedGroupAsyncCopyKHR |
4445 | OpTraceRayKHR |
4446 | OpExecuteCallableKHR |
4447 | OpConvertUToAccelerationStructureKHR |
4448 | OpIgnoreIntersectionKHR |
4449 | OpTerminateRayKHR |
4450 | OpSDot, OpSDotKHR |
4451 | OpUDot, OpUDotKHR |
4452 | OpSUDot, OpSUDotKHR |
4453 | OpSDotAccSat, OpSDotAccSatKHR |
4454 | OpUDotAccSat, OpUDotAccSatKHR |
4455 | OpSUDotAccSat, OpSUDotAccSatKHR |
4456 | OpTypeCooperativeMatrixKHR |
4457 | OpCooperativeMatrixLoadKHR |
4458 | OpCooperativeMatrixStoreKHR |
4459 | OpCooperativeMatrixMulAddKHR |
4460 | OpCooperativeMatrixLengthKHR |
4461 | OpConstantCompositeReplicateEXT |
4462 | OpSpecConstantCompositeReplicateEXT |
4463 | OpCompositeConstructReplicateEXT |
4472 | OpTypeRayQueryKHR |
4473 | OpRayQueryInitializeKHR |
4474 | OpRayQueryTerminateKHR |
4475 | OpRayQueryGenerateIntersectionKHR |
4476 | OpRayQueryConfirmIntersectionKHR |
4477 | OpRayQueryProceedKHR |
4479 | OpRayQueryGetIntersectionTypeKHR |
4480 | OpImageSampleWeightedQCOM |
4481 | OpImageBoxFilterQCOM |
4482 | OpImageBlockMatchSSDQCOM |
4483 | OpImageBlockMatchSADQCOM |
4497 | OpBitCastArrayQCOM |
4500 | OpImageBlockMatchWindowSSDQCOM |
4501 | OpImageBlockMatchWindowSADQCOM |
4502 | OpImageBlockMatchGatherSSDQCOM |
4503 | OpImageBlockMatchGatherSADQCOM |
4505 | OpBFloat16MulAddQCOM |
4540 | OpCompositeConstructCoopMatQCOM |
4541 | OpCompositeExtractCoopMatQCOM |
4542 | OpExtractSubArrayQCOM |
4545 | OpImageGatherQCOM |
Values 5000 to 5439
| Value | Name |
|---|---|
5000 | OpGroupIAddNonUniformAMD |
5001 | OpGroupFAddNonUniformAMD |
5002 | OpGroupFMinNonUniformAMD |
5003 | OpGroupUMinNonUniformAMD |
5004 | OpGroupSMinNonUniformAMD |
5005 | OpGroupFMaxNonUniformAMD |
5006 | OpGroupUMaxNonUniformAMD |
5007 | OpGroupSMaxNonUniformAMD |
5011 | OpFragmentMaskFetchAMD |
5012 | OpFragmentFetchAMD |
5056 | OpReadClockKHR |
5074 | OpAllocateNodePayloadsAMDX |
5075 | OpEnqueueNodePayloadsAMDX |
5076 | OpTypeNodePayloadArrayAMDX |
5078 | OpFinishWritingNodePayloadAMDX |
5090 | OpNodePayloadArrayLengthAMDX |
5101 | OpIsNodePayloadValidAMDX |
5103 | OpConstantStringAMDX |
5104 | OpSpecConstantStringAMDX |
5110 | OpGroupNonUniformQuadAllKHR |
5111 | OpGroupNonUniformQuadAnyKHR |
5115 | OpTypeBufferEXT |
5119 | OpBufferPointerEXT |
5121 | OpAbortKHR |
5126 | OpUntypedImageTexelPointerEXT |
5127 | OpMemberDecorateIdEXT |
5129 | OpConstantSizeOfEXT |
5147 | OpConstantDataKHR |
5148 | OpSpecConstantDataKHR |
5158 | OpPoisonKHR |
5159 | OpFreezeKHR |
5249 | OpHitObjectRecordHitMotionNV |
5250 | OpHitObjectRecordHitWithIndexMotionNV |
5251 | OpHitObjectRecordMissMotionNV |
5252 | OpHitObjectGetWorldToObjectNV |
5253 | OpHitObjectGetObjectToWorldNV |
5254 | OpHitObjectGetObjectRayDirectionNV |
5255 | OpHitObjectGetObjectRayOriginNV |
5256 | OpHitObjectTraceRayMotionNV |
5257 | OpHitObjectGetShaderRecordBufferHandleNV |
5258 | OpHitObjectGetShaderBindingTableRecordIndexNV |
5259 | OpHitObjectRecordEmptyNV |
5260 | OpHitObjectTraceRayNV |
5261 | OpHitObjectRecordHitNV |
5262 | OpHitObjectRecordHitWithIndexNV |
5263 | OpHitObjectRecordMissNV |
5264 | OpHitObjectExecuteShaderNV |
5265 | OpHitObjectGetCurrentTimeNV |
5266 | OpHitObjectGetAttributesNV |
5267 | OpHitObjectGetHitKindNV |
5268 | OpHitObjectGetPrimitiveIndexNV |
5269 | OpHitObjectGetGeometryIndexNV |
5270 | OpHitObjectGetInstanceIdNV |
5271 | OpHitObjectGetInstanceCustomIndexNV |
5272 | OpHitObjectGetWorldRayDirectionNV |
5273 | OpHitObjectGetWorldRayOriginNV |
5274 | OpHitObjectGetRayTMaxNV |
5275 | OpHitObjectGetRayTMinNV |
5276 | OpHitObjectIsEmptyNV |
5277 | OpHitObjectIsHitNV |
5278 | OpHitObjectIsMissNV |
5279 | OpReorderThreadWithHitObjectNV |
5280 | OpReorderThreadWithHintNV |
5281 | OpTypeHitObjectNV |
5283 | OpImageSampleFootprintNV |
5288 | OpTypeCooperativeVectorNV, OpTypeVectorIdEXT |
5289 | OpCooperativeVectorMatrixMulNV |
5290 | OpCooperativeVectorOuterProductAccumulateNV |
5291 | OpCooperativeVectorReduceSumAccumulateNV |
5292 | OpCooperativeVectorMatrixMulAddNV |
5293 | OpCooperativeMatrixConvertNV, OpCooperativeMatrixConvertUseEXT |
5294 | OpEmitMeshTasksEXT |
5295 | OpSetMeshOutputsEXT |
5296 | OpGroupNonUniformPartitionEXT, OpGroupNonUniformPartitionNV |
5299 | OpWritePackedPrimitiveIndices4x8NV |
5300 | OpFetchMicroTriangleVertexPositionNV |
5301 | OpFetchMicroTriangleVertexBarycentricNV |
5302 | OpCooperativeVectorLoadNV |
5303 | OpCooperativeVectorStoreNV |
5304 | OpHitObjectRecordFromQueryEXT |
5305 | OpHitObjectRecordMissEXT |
5306 | OpHitObjectRecordMissMotionEXT |
5307 | OpHitObjectGetIntersectionTriangleVertexPositionsEXT |
5308 | OpHitObjectGetRayFlagsEXT |
5309 | OpHitObjectSetShaderBindingTableRecordIndexEXT |
5310 | OpHitObjectReorderExecuteShaderEXT |
5311 | OpHitObjectTraceReorderExecuteEXT |
5312 | OpHitObjectTraceMotionReorderExecuteEXT |
5313 | OpTypeHitObjectEXT |
5314 | OpReorderThreadWithHintEXT |
5315 | OpReorderThreadWithHitObjectEXT |
5316 | OpHitObjectTraceRayEXT |
5317 | OpHitObjectTraceRayMotionEXT |
5318 | OpHitObjectRecordEmptyEXT |
5319 | OpHitObjectExecuteShaderEXT |
5320 | OpHitObjectGetCurrentTimeEXT |
5321 | OpHitObjectGetAttributesEXT |
5322 | OpHitObjectGetHitKindEXT |
5323 | OpHitObjectGetPrimitiveIndexEXT |
5324 | OpHitObjectGetGeometryIndexEXT |
5325 | OpHitObjectGetInstanceIdEXT |
5326 | OpHitObjectGetInstanceCustomIndexEXT |
5327 | OpHitObjectGetObjectRayOriginEXT |
5328 | OpHitObjectGetObjectRayDirectionEXT |
5329 | OpHitObjectGetWorldRayDirectionEXT |
5330 | OpHitObjectGetWorldRayOriginEXT |
5331 | OpHitObjectGetObjectToWorldEXT |
5332 | OpHitObjectGetWorldToObjectEXT |
5333 | OpHitObjectGetRayTMaxEXT |
5334 | OpReportIntersectionKHR, OpReportIntersectionNV |
5335 | OpIgnoreIntersectionNV |
5336 | OpTerminateRayNV |
5337 | OpTraceNV |
5338 | OpTraceMotionNV |
5339 | OpTraceRayMotionNV |
5340 | OpRayQueryGetIntersectionTriangleVertexPositionsKHR |
5341 | OpTypeAccelerationStructureKHR, OpTypeAccelerationStructureNV |
5344 | OpExecuteCallableNV |
5345 | OpRayQueryGetClusterIdNV, OpRayQueryGetIntersectionClusterIdNV |
5346 | OpHitObjectGetClusterIdNV |
5347 | OpHitObjectGetRayTMinEXT |
5348 | OpHitObjectGetShaderBindingTableRecordIndexEXT |
5349 | OpHitObjectGetShaderRecordBufferHandleEXT |
5350 | OpHitObjectIsEmptyEXT |
5351 | OpHitObjectIsHitEXT |
5352 | OpHitObjectIsMissEXT |
5358 | OpTypeCooperativeMatrixNV |
5359 | OpCooperativeMatrixLoadNV |
5360 | OpCooperativeMatrixStoreNV |
5361 | OpCooperativeMatrixMulAddNV |
5362 | OpCooperativeMatrixLengthNV |
5363 | OpCooperativeMatrixGetCoordinateEXT |
5364 | OpBeginInvocationInterlockEXT |
5365 | OpEndInvocationInterlockEXT |
5366 | OpCooperativeMatrixReduceEXT, OpCooperativeMatrixReduceNV |
5367 | OpCooperativeMatrixLoadTensorNV |
5368 | OpCooperativeMatrixStoreTensorNV |
5369 | OpCooperativeMatrixPerElementOpEXT, OpCooperativeMatrixPerElementOpNV |
5370 | OpTypeTensorLayoutNV |
5371 | OpTypeTensorViewNV |
5372 | OpCreateTensorLayoutNV |
5373 | OpTensorLayoutSetDimensionNV |
5374 | OpTensorLayoutSetStrideNV |
5375 | OpTensorLayoutSliceNV |
5376 | OpTensorLayoutSetClampValueNV |
5377 | OpCreateTensorViewNV |
5378 | OpTensorViewSetDimensionNV |
5379 | OpTensorViewSetStrideNV |
5380 | OpDemoteToHelperInvocation, OpDemoteToHelperInvocationEXT |
5381 | OpIsHelperInvocationEXT |
5382 | OpTensorViewSetClipNV |
5384 | OpTensorLayoutSetBlockSizeNV |
5390 | OpCooperativeMatrixTransposeNV |
5391 | OpConvertUToImageNV |
5392 | OpConvertUToSamplerNV |
5393 | OpConvertImageToUNV |
5394 | OpConvertSamplerToUNV |
5395 | OpConvertUToSampledImageNV |
5396 | OpConvertSampledImageToUNV |
5397 | OpSamplerImageAddressingModeNV |
5398 | OpRawAccessChainNV |
5427 | OpRayQueryGetIntersectionSpherePositionNV |
5428 | OpRayQueryGetIntersectionSphereRadiusNV |
5429 | OpRayQueryGetIntersectionLSSPositionsNV |
5430 | OpRayQueryGetIntersectionLSSRadiiNV |
5431 | OpRayQueryGetIntersectionLSSHitValueNV |
5432 | OpHitObjectGetSpherePositionNV |
5433 | OpHitObjectGetSphereRadiusNV |
5434 | OpHitObjectGetLSSPositionsNV |
5435 | OpHitObjectGetLSSRadiiNV |
5436 | OpHitObjectIsSphereHitNV |
5437 | OpHitObjectIsLSSHitNV |
5438 | OpRayQueryIsSphereHitNV |
5439 | OpRayQueryIsLSSHitNV |
Values 5571 to 5949
| Value | Name |
|---|---|
5571 | OpSubgroupShuffleINTEL |
5572 | OpSubgroupShuffleDownINTEL |
5573 | OpSubgroupShuffleUpINTEL |
5574 | OpSubgroupShuffleXorINTEL |
5575 | OpSubgroupBlockReadINTEL |
5576 | OpSubgroupBlockWriteINTEL |
5577 | OpSubgroupImageBlockReadINTEL |
5578 | OpSubgroupImageBlockWriteINTEL |
5580 | OpSubgroupImageMediaBlockReadINTEL |
5581 | OpSubgroupImageMediaBlockWriteINTEL |
5585 | OpUCountLeadingZerosINTEL |
5586 | OpUCountTrailingZerosINTEL |
5587 | OpAbsISubINTEL |
5588 | OpAbsUSubINTEL |
5589 | OpIAddSatINTEL |
5590 | OpUAddSatINTEL |
5591 | OpIAverageINTEL |
5592 | OpUAverageINTEL |
5593 | OpIAverageRoundedINTEL |
5594 | OpUAverageRoundedINTEL |
5595 | OpISubSatINTEL |
5596 | OpUSubSatINTEL |
5597 | OpIMul32x16INTEL |
5598 | OpUMul32x16INTEL |
5600 | OpConstantFunctionPointerINTEL |
5601 | OpFunctionPointerCallINTEL |
5609 | OpAsmTargetINTEL |
5610 | OpAsmINTEL |
5611 | OpAsmCallINTEL |
5614 | OpAtomicFMinEXT |
5615 | OpAtomicFMaxEXT |
5630 | OpAssumeTrueKHR |
5631 | OpExpectKHR |
5632 | OpDecorateString, OpDecorateStringGOOGLE |
5633 | OpMemberDecorateString, OpMemberDecorateStringGOOGLE |
5699 | OpVmeImageINTEL |
5700 | OpTypeVmeImageINTEL |
5701 | OpTypeAvcImePayloadINTEL |
5702 | OpTypeAvcRefPayloadINTEL |
5703 | OpTypeAvcSicPayloadINTEL |
5704 | OpTypeAvcMcePayloadINTEL |
5705 | OpTypeAvcMceResultINTEL |
5706 | OpTypeAvcImeResultINTEL |
5707 | OpTypeAvcImeResultSingleReferenceStreamoutINTEL |
5708 | OpTypeAvcImeResultDualReferenceStreamoutINTEL |
5709 | OpTypeAvcImeSingleReferenceStreaminINTEL |
5710 | OpTypeAvcImeDualReferenceStreaminINTEL |
5711 | OpTypeAvcRefResultINTEL |
5712 | OpTypeAvcSicResultINTEL |
5713 | OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL |
5714 | OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL |
5715 | OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL |
5716 | OpSubgroupAvcMceSetInterShapePenaltyINTEL |
5717 | OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL |
5718 | OpSubgroupAvcMceSetInterDirectionPenaltyINTEL |
5719 | OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL |
5720 | OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL |
5721 | OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL |
5722 | OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL |
5723 | OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL |
5724 | OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL |
5725 | OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL |
5726 | OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL |
5727 | OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL |
5728 | OpSubgroupAvcMceSetAcOnlyHaarINTEL |
5729 | OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL |
5730 | OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL |
5731 | OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL |
5732 | OpSubgroupAvcMceConvertToImePayloadINTEL |
5733 | OpSubgroupAvcMceConvertToImeResultINTEL |
5734 | OpSubgroupAvcMceConvertToRefPayloadINTEL |
5735 | OpSubgroupAvcMceConvertToRefResultINTEL |
5736 | OpSubgroupAvcMceConvertToSicPayloadINTEL |
5737 | OpSubgroupAvcMceConvertToSicResultINTEL |
5738 | OpSubgroupAvcMceGetMotionVectorsINTEL |
5739 | OpSubgroupAvcMceGetInterDistortionsINTEL |
5740 | OpSubgroupAvcMceGetBestInterDistortionsINTEL |
5741 | OpSubgroupAvcMceGetInterMajorShapeINTEL |
5742 | OpSubgroupAvcMceGetInterMinorShapeINTEL |
5743 | OpSubgroupAvcMceGetInterDirectionsINTEL |
5744 | OpSubgroupAvcMceGetInterMotionVectorCountINTEL |
5745 | OpSubgroupAvcMceGetInterReferenceIdsINTEL |
5746 | OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL |
5747 | OpSubgroupAvcImeInitializeINTEL |
5748 | OpSubgroupAvcImeSetSingleReferenceINTEL |
5749 | OpSubgroupAvcImeSetDualReferenceINTEL |
5750 | OpSubgroupAvcImeRefWindowSizeINTEL |
5751 | OpSubgroupAvcImeAdjustRefOffsetINTEL |
5752 | OpSubgroupAvcImeConvertToMcePayloadINTEL |
5753 | OpSubgroupAvcImeSetMaxMotionVectorCountINTEL |
5754 | OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL |
5755 | OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL |
5756 | OpSubgroupAvcImeSetWeightedSadINTEL |
5757 | OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL |
5758 | OpSubgroupAvcImeEvaluateWithDualReferenceINTEL |
5759 | OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL |
5760 | OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL |
5761 | OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL |
5762 | OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL |
5763 | OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL |
5764 | OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL |
5765 | OpSubgroupAvcImeConvertToMceResultINTEL |
5766 | OpSubgroupAvcImeGetSingleReferenceStreaminINTEL |
5767 | OpSubgroupAvcImeGetDualReferenceStreaminINTEL |
5768 | OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL |
5769 | OpSubgroupAvcImeStripDualReferenceStreamoutINTEL |
5770 | OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL |
5771 | OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL |
5772 | OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL |
5773 | OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL |
5774 | OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL |
5775 | OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL |
5776 | OpSubgroupAvcImeGetBorderReachedINTEL |
5777 | OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL |
5778 | OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL |
5779 | OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL |
5780 | OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL |
5781 | OpSubgroupAvcFmeInitializeINTEL |
5782 | OpSubgroupAvcBmeInitializeINTEL |
5783 | OpSubgroupAvcRefConvertToMcePayloadINTEL |
5784 | OpSubgroupAvcRefSetBidirectionalMixDisableINTEL |
5785 | OpSubgroupAvcRefSetBilinearFilterEnableINTEL |
5786 | OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL |
5787 | OpSubgroupAvcRefEvaluateWithDualReferenceINTEL |
5788 | OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL |
5789 | OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL |
5790 | OpSubgroupAvcRefConvertToMceResultINTEL |
5791 | OpSubgroupAvcSicInitializeINTEL |
5792 | OpSubgroupAvcSicConfigureSkcINTEL |
5793 | OpSubgroupAvcSicConfigureIpeLumaINTEL |
5794 | OpSubgroupAvcSicConfigureIpeLumaChromaINTEL |
5795 | OpSubgroupAvcSicGetMotionVectorMaskINTEL |
5796 | OpSubgroupAvcSicConvertToMcePayloadINTEL |
5797 | OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL |
5798 | OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL |
5799 | OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL |
5800 | OpSubgroupAvcSicSetBilinearFilterEnableINTEL |
5801 | OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL |
5802 | OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL |
5803 | OpSubgroupAvcSicEvaluateIpeINTEL |
5804 | OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL |
5805 | OpSubgroupAvcSicEvaluateWithDualReferenceINTEL |
5806 | OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL |
5807 | OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL |
5808 | OpSubgroupAvcSicConvertToMceResultINTEL |
5809 | OpSubgroupAvcSicGetIpeLumaShapeINTEL |
5810 | OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL |
5811 | OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL |
5812 | OpSubgroupAvcSicGetPackedIpeLumaModesINTEL |
5813 | OpSubgroupAvcSicGetIpeChromaModeINTEL |
5814 | OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL |
5815 | OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL |
5816 | OpSubgroupAvcSicGetInterRawSadsINTEL |
5818 | OpVariableLengthArrayINTEL |
5819 | OpSaveMemoryINTEL |
5820 | OpRestoreMemoryINTEL |
5840 | OpArbitraryFloatSinCosPiALTERA, OpArbitraryFloatSinCosPiINTEL |
5841 | OpArbitraryFloatCastALTERA, OpArbitraryFloatCastINTEL |
5842 | OpArbitraryFloatCastFromIntALTERA, OpArbitraryFloatCastFromIntINTEL |
5843 | OpArbitraryFloatCastToIntALTERA, OpArbitraryFloatCastToIntINTEL |
5846 | OpArbitraryFloatAddALTERA, OpArbitraryFloatAddINTEL |
5847 | OpArbitraryFloatSubALTERA, OpArbitraryFloatSubINTEL |
5848 | OpArbitraryFloatMulALTERA, OpArbitraryFloatMulINTEL |
5849 | OpArbitraryFloatDivALTERA, OpArbitraryFloatDivINTEL |
5850 | OpArbitraryFloatGTALTERA, OpArbitraryFloatGTINTEL |
5851 | OpArbitraryFloatGEALTERA, OpArbitraryFloatGEINTEL |
5852 | OpArbitraryFloatLTALTERA, OpArbitraryFloatLTINTEL |
5853 | OpArbitraryFloatLEALTERA, OpArbitraryFloatLEINTEL |
5854 | OpArbitraryFloatEQALTERA, OpArbitraryFloatEQINTEL |
5855 | OpArbitraryFloatRecipALTERA, OpArbitraryFloatRecipINTEL |
5856 | OpArbitraryFloatRSqrtALTERA, OpArbitraryFloatRSqrtINTEL |
5857 | OpArbitraryFloatCbrtALTERA, OpArbitraryFloatCbrtINTEL |
5858 | OpArbitraryFloatHypotALTERA, OpArbitraryFloatHypotINTEL |
5859 | OpArbitraryFloatSqrtALTERA, OpArbitraryFloatSqrtINTEL |
5860 | OpArbitraryFloatLogINTEL |
5861 | OpArbitraryFloatLog2INTEL |
5862 | OpArbitraryFloatLog10INTEL |
5863 | OpArbitraryFloatLog1pINTEL |
5864 | OpArbitraryFloatExpINTEL |
5865 | OpArbitraryFloatExp2INTEL |
5866 | OpArbitraryFloatExp10INTEL |
5867 | OpArbitraryFloatExpm1INTEL |
5868 | OpArbitraryFloatSinINTEL |
5869 | OpArbitraryFloatCosINTEL |
5870 | OpArbitraryFloatSinCosINTEL |
5871 | OpArbitraryFloatSinPiINTEL |
5872 | OpArbitraryFloatCosPiINTEL |
5873 | OpArbitraryFloatASinINTEL |
5874 | OpArbitraryFloatASinPiINTEL |
5875 | OpArbitraryFloatACosINTEL |
5876 | OpArbitraryFloatACosPiINTEL |
5877 | OpArbitraryFloatATanINTEL |
5878 | OpArbitraryFloatATanPiINTEL |
5879 | OpArbitraryFloatATan2INTEL |
5880 | OpArbitraryFloatPowINTEL |
5881 | OpArbitraryFloatPowRINTEL |
5882 | OpArbitraryFloatPowNINTEL |
5887 | OpLoopControlINTEL |
5911 | OpAliasDomainDeclINTEL |
5912 | OpAliasScopeDeclINTEL |
5913 | OpAliasScopeListDeclINTEL |
5923 | OpFixedSqrtALTERA, OpFixedSqrtINTEL |
5924 | OpFixedRecipALTERA, OpFixedRecipINTEL |
5925 | OpFixedRsqrtALTERA, OpFixedRsqrtINTEL |
5926 | OpFixedSinALTERA, OpFixedSinINTEL |
5927 | OpFixedCosALTERA, OpFixedCosINTEL |
5928 | OpFixedSinCosALTERA, OpFixedSinCosINTEL |
5929 | OpFixedSinPiALTERA, OpFixedSinPiINTEL |
5930 | OpFixedCosPiALTERA, OpFixedCosPiINTEL |
5931 | OpFixedSinCosPiALTERA, OpFixedSinCosPiINTEL |
5932 | OpFixedLogALTERA, OpFixedLogINTEL |
5933 | OpFixedExpALTERA, OpFixedExpINTEL |
5934 | OpPtrCastToCrossWorkgroupALTERA, OpPtrCastToCrossWorkgroupINTEL |
5938 | OpCrossWorkgroupCastToPtrALTERA, OpCrossWorkgroupCastToPtrINTEL |
5946 | OpReadPipeBlockingALTERA, OpReadPipeBlockingINTEL |
5947 | OpWritePipeBlockingALTERA, OpWritePipeBlockingINTEL |
5949 | OpFPGARegALTERA, OpFPGARegINTEL |
Values 6016 to 6918
| Value | Name |
|---|---|
6016 | OpRayQueryGetRayTMinKHR |
6017 | OpRayQueryGetRayFlagsKHR |
6018 | OpRayQueryGetIntersectionTKHR |
6019 | OpRayQueryGetIntersectionInstanceCustomIndexKHR |
6020 | OpRayQueryGetIntersectionInstanceIdKHR |
6021 | OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR |
6022 | OpRayQueryGetIntersectionGeometryIndexKHR |
6023 | OpRayQueryGetIntersectionPrimitiveIndexKHR |
6024 | OpRayQueryGetIntersectionBarycentricsKHR |
6025 | OpRayQueryGetIntersectionFrontFaceKHR |
6026 | OpRayQueryGetIntersectionCandidateAABBOpaqueKHR |
6027 | OpRayQueryGetIntersectionObjectRayDirectionKHR |
6028 | OpRayQueryGetIntersectionObjectRayOriginKHR |
6029 | OpRayQueryGetWorldRayDirectionKHR |
6030 | OpRayQueryGetWorldRayOriginKHR |
6031 | OpRayQueryGetIntersectionObjectToWorldKHR |
6032 | OpRayQueryGetIntersectionWorldToObjectKHR |
6035 | OpAtomicFAddEXT |
6086 | OpTypeBufferSurfaceINTEL |
6090 | OpTypeStructContinuedINTEL |
6091 | OpConstantCompositeContinuedINTEL |
6092 | OpSpecConstantCompositeContinuedINTEL |
6096 | OpCompositeConstructContinuedINTEL |
6116 | OpConvertFToBF16INTEL |
6117 | OpConvertBF16ToFINTEL |
6142 | OpControlBarrierArriveEXT, OpControlBarrierArriveINTEL |
6143 | OpControlBarrierWaitEXT, OpControlBarrierWaitINTEL |
6145 | OpArithmeticFenceEXT |
6163 | OpTaskSequenceCreateALTERA, OpTaskSequenceCreateINTEL |
6164 | OpTaskSequenceAsyncALTERA, OpTaskSequenceAsyncINTEL |
6165 | OpTaskSequenceGetALTERA, OpTaskSequenceGetINTEL |
6166 | OpTaskSequenceReleaseALTERA, OpTaskSequenceReleaseINTEL |
6199 | OpTypeTaskSequenceALTERA, OpTypeTaskSequenceINTEL |
6208 | OpSubgroupBitcastShuffleINTEL |
6221 | OpSubgroupBlockPrefetchINTEL |
6231 | OpSubgroup2DBlockLoadINTEL |
6232 | OpSubgroup2DBlockLoadTransformINTEL |
6233 | OpSubgroup2DBlockLoadTransposeINTEL |
6234 | OpSubgroup2DBlockPrefetchINTEL |
6235 | OpSubgroup2DBlockStoreINTEL |
6237 | OpSubgroupMatrixMultiplyAccumulateINTEL |
6242 | OpBitwiseFunctionINTEL |
6244 | OpUntypedVariableLengthArrayINTEL |
6248 | OpConditionalExtensionINTEL |
6249 | OpConditionalEntryPointINTEL |
6250 | OpConditionalCapabilityINTEL |
6251 | OpSpecConstantTargetINTEL |
6252 | OpSpecConstantArchitectureINTEL |
6253 | OpSpecConstantCapabilitiesINTEL |
6254 | OpConditionalCopyObjectINTEL |
6258 | OpPredicatedLoadINTEL |
6259 | OpPredicatedStoreINTEL |
6267 | OpPauseINTEL |
6401 | OpGroupIMulKHR |
6402 | OpGroupFMulKHR |
6403 | OpGroupBitwiseAndKHR |
6404 | OpGroupBitwiseOrKHR |
6405 | OpGroupBitwiseXorKHR |
6406 | OpGroupLogicalAndKHR |
6407 | OpGroupLogicalOrKHR |
6408 | OpGroupLogicalXorKHR |
6426 | OpRoundFToTF32INTEL |
6428 | OpMaskedGatherINTEL |
6429 | OpMaskedScatterINTEL |
6529 | OpConvertHandleToImageINTEL |
6530 | OpConvertHandleToSamplerINTEL |
6531 | OpConvertHandleToSampledImageINTEL |
6916 | OpFDot2MixAcc32VALVE |
6917 | OpFDot2MixAcc16VALVE |
6918 | OpFDot4MixAcc32VALVE |
Extended instruction sets: GLSL.std.450 and OpenCL.std
OpExtInst (12) calls an instruction of an imported set:
OpExtInst result type, result id, set (the id
from an OpExtInstImport of the set’s name), instruction number
(a literal), then the instruction’s operands. In both sets below the operand kinds are
all IdRef except where stated. Names and numbers are from the Khronos
grammar files, version 1.0 revision 2.
GLSL.std.450 (import name GLSL.std.450, 81 instructions)
| Operands | Instructions (number and name) |
|---|---|
| x | 1 Round, 2 RoundEven, 3 Trunc, 4 FAbs, 5 SAbs, 6 FSign, 7 SSign, 8 Floor, 9 Ceil, 10 Fract, 13 Sin, 14 Cos, 15 Tan, 16 Asin, 17 Acos, 19 Sinh, 20 Cosh, 21 Tanh, 22 Asinh, 23 Acosh, 24 Atanh, 27 Exp, 28 Log, 29 Exp2, 30 Log2, 31 Sqrt, 32 InverseSqrt, 33 Determinant, 34 MatrixInverse, 36 ModfStruct, 52 FrexpStruct, 66 Length, 69 Normalize |
| degrees | 11 Radians |
| radians | 12 Degrees |
| y_over_x | 18 Atan |
| y, x | 25 Atan2 |
| x, y | 26 Pow, 37 FMin, 38 UMin, 39 SMin, 40 FMax, 41 UMax, 42 SMax, 68 Cross, 79 NMin, 80 NMax |
| x, i | 35 Modf |
| x, minVal, maxVal | 43 FClamp, 44 UClamp, 45 SClamp, 81 NClamp |
| x, y, a | 46 FMix, 47 IMix |
| edge, x | 48 Step |
| edge0, edge1, x | 49 SmoothStep |
| a, b, c | 50 Fma |
| x, exp | 51 Frexp, 53 Ldexp |
| v | 54 PackSnorm4x8, 55 PackUnorm4x8, 56 PackSnorm2x16, 57 PackUnorm2x16, 58 PackHalf2x16, 59 PackDouble2x32 (capability Float64), 62 UnpackHalf2x16, 65 UnpackDouble2x32 (Float64) |
| p | 60 UnpackSnorm2x16, 61 UnpackUnorm2x16, 63 UnpackSnorm4x8, 64 UnpackUnorm4x8 |
| p0, p1 | 67 Distance |
| N, I, Nref | 70 FaceForward |
| I, N | 71 Reflect |
| I, N, eta | 72 Refract |
| Value | 73 FindILsb, 74 FindSMsb, 75 FindUMsb |
| interpolant | 76 InterpolateAtCentroid (capability InterpolationFunction) |
| interpolant, sample | 77 InterpolateAtSample (InterpolationFunction) |
| interpolant, offset | 78 InterpolateAtOffset (InterpolationFunction) |
OpenCL.std (import name OpenCL.std, 162 instructions)
Opcodes 111 to 140 and 188 to 200 have no instruction in the grammar. Operand
kinds other than IdRef are named in the table.
| Operands | Instructions (number and name) |
|---|---|
| x | 0 acos, 1 acosh, 2 acospi, 3 asin, 4 asinh, 5 asinpi, 6 atan, 8 atanh, 9 atanpi, 11 cbrt, 12 ceil, 14 cos, 15 cosh, 16 cospi, 17 erfc, 18 erf, 19 exp, 20 exp2, 21 exp10, 22 expm1, 23 fabs, 25 floor, 33 ilogb, 35 lgamma, 37 log, 38 log2, 39 log10, 40 log1p, 41 logb, 53 rint, 55 round, 56 rsqrt, 57 sin, 59 sinh, 60 sinpi, 61 sqrt, 62 tan, 63 tanh, 64 tanpi, 65 trunc, 67 half_cos, 69 half_exp, 70 half_exp2, 71 half_exp10, 72 half_log, 73 half_log2, 74 half_log10, 76 half_recip, 77 half_rsqrt, 78 half_sin, 79 half_sqrt, 80 half_tan, 81 native_cos, 83 native_exp, 84 native_exp2, 85 native_exp10, 86 native_log, 87 native_log2, 88 native_log10, 90 native_recip, 91 native_rsqrt, 92 native_sin, 93 native_sqrt, 94 native_tan, 103 sign, 141 s_abs, 151 clz, 152 ctz, 166 popcount, 201 u_abs |
| x, y | 13 copysign, 24 fdim, 27 fmax, 28 fmin, 29 fmod, 32 hypot, 43 maxmag, 44 minmag, 47 nextafter, 48 pow, 49 pown, 50 powr, 51 remainder, 54 rootn, 68 half_divide, 75 half_powr, 82 native_divide, 89 native_powr, 97 fmax_common, 98 fmin_common, 142 s_abs_diff, 143 s_add_sat, 144 u_add_sat, 145 s_hadd, 146 u_hadd, 147 s_rhadd, 148 u_rhadd, 156 s_max, 157 u_max, 158 s_min, 159 u_min, 160 s_mul_hi, 162 s_sub_sat, 163 u_sub_sat, 169 s_mul24, 170 u_mul24, 202 u_abs_diff, 203 u_mul_hi |
| y, x | 7 atan2, 10 atan2pi |
| a, b, c | 26 fma, 42 mad, 153 s_mad_hi, 186 bitselect, 187 select, 204 u_mad_hi |
| x, minval, maxval | 95 fclamp, 149 s_clamp, 150 u_clamp |
| x, y, z | 154 u_mad_sat, 155 s_mad_sat, 167 s_mad24, 168 u_mad24 |
| x, ptr | 30 fract |
| x, exp | 31 frexp |
| x, k | 34 ldexp |
| x, signp | 36 lgamma_r |
| x, iptr | 45 modf |
| nancode | 46 nan |
| x, y, quo | 52 remquo |
| x, cosval | 58 sincos |
| radians | 96 degrees |
| degrees | 100 radians |
| x, y, a | 99 mix |
| edge, x | 101 step |
| edge0, edge1, x | 102 smoothstep |
| p0, p1 | 104 cross, 105 distance, 108 fast_distance |
| p | 106 length, 107 normalize, 109 fast_length, 110 fast_normalize |
| v, i | 161 rotate |
| hi, lo | 164 u_upsample, 165 s_upsample |
| offset, p, n (LiteralInteger) | 171 vloadn, 174 vload_halfn, 179 vloada_halfn |
| data, offset, p | 172 vstoren, 175 vstore_half, 177 vstore_halfn, 180 vstorea_halfn |
| offset, p | 173 vload_half |
| data, offset, p, mode (FPRoundingMode) | 176 vstore_half_r, 178 vstore_halfn_r, 181 vstorea_halfn_r |
| x, shuffle mask | 182 shuffle |
| x, y, shuffle mask | 183 shuffle2 |
| format, additional arguments (zero or more) | 184 printf |
| ptr, num elements | 185 prefetch |
The operand layout of OpExtInst and OpExtInstImport is from
spirv.core.grammar.json (Khronos SPIRV-Headers, read 13 November 2026): the
number is a LiteralExtInstInteger, followed by zero or more
IdRef operands. The groups above list every instruction of the two
grammar files once.
Sources
- extinst.glsl.std.450.grammar.json and extinst.opencl.std.100.grammar.json – Khronos SPIRV-Headers, read 13 November 2026: every extended instruction, its number, operand names and kinds, and capabilities
- spirv.h – Khronos SPIRV-Headers, unified1 C header (
SPV_VERSION 0x10600): every name and value in theSpvOpenum