From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:SPIR-V" |
|---|
| claim | "Opcode numbers (the values of this fact, a selection of the full SpvOp enum): OpSource 3, OpName 5, OpExtInstImport 11, OpMemoryModel 14, OpEntryPoint 15, OpExecutionMode 16, OpCapability 17, OpTypeVoid 19, OpTypeFunction 33, OpFunction 54, OpFunctionEnd 56, OpVariable 59, OpLoad 61, OpStore 62, OpDecorate 71, OpMemberDecorate 72, OpLabel 248, OpReturn 253. An instruction's first word is wordcount << 16 | opcode. Not in the values: execution models Vertex 0, Fragment 4, GLCompute 5, Kernel 6, and decorations BuiltIn 11, Location 30, Binding 33, DescriptorSet 34." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:SPIR-V" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "SpvOp (selection)" |
|---|
| values | | 3 | "OpSource" |
|---|
| 5 | "OpName" |
|---|
| 11 | "OpExtInstImport" |
|---|
| 14 | "OpMemoryModel" |
|---|
| 15 | "OpEntryPoint" |
|---|
| 16 | "OpExecutionMode" |
|---|
| 17 | "OpCapability" |
|---|
| 19 | "OpTypeVoid" |
|---|
| 33 | "OpTypeFunction" |
|---|
| 54 | "OpFunction" |
|---|
| 56 | "OpFunctionEnd" |
|---|
| 59 | "OpVariable" |
|---|
| 61 | "OpLoad" |
|---|
| 62 | "OpStore" |
|---|
| 71 | "OpDecorate" |
|---|
| 72 | "OpMemberDecorate" |
|---|
| 248 | "OpLabel" |
|---|
| 253 | "OpReturn" |
|---|
|
|---|
| complete | false |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "SpvExecutionModel, SpvDecoration and SpvOp enums" |
|---|
| repo | "https://github.com/KhronosGroup/SPIRV-Headers" |
|---|
| commit | "86f980c731e62ae4eaf383d320449d71687936bf" |
|---|
| path | "include/spirv/unified1/spirv.h" |
|---|
| lines | "74-80, 522-544, 1781-2009" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Common opcodes and entry point enums" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:51:54.312Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:16:10.999Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read SPIRV-Headers spirv.h at 86f980c: grep of all 18 SpvOp values plus SpvExecutionModel Vertex 0/Fragment 4/GLCompute 5/Kernel 6 and SpvDecoration BuiltIn 11/Location 30/Binding 33/DescriptorSet 34 gives the numbers in the claim." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:18:11.051Z" |
|---|
| summary | "All 18 opcodes, 4 execution models and 4 decorations in the claim match spirv.h, but data.values holds only the opcodes (the models and decorations are claim-only) and is a selection: mark complete…" |
|---|
| changed | |
|---|
|
|
|---|