Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:SPIR-V/magic/SPIR-V magic

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:SPIR-V"
claim"A SPIR-V module starts with the 32-bit word 0x07230203 (SpvMagicNumber); the header is five words: magic, version, generator, bound, schema, and instructions begin at word 5."
scope
level"format"
applies_to"Format:SPIR-V"
observed_in
Empty array
data
bytes"03 02 23 07"
offset"0x0"
meaning"SPIR-V magic word 0x07230203 as stored by a little-endian producer (the usual case); a big-endian file shows 07 23 02 03"
alternatives
"07 23 02 03"
evidence
type"source"
detail"SpvMagicNumber 0x07230203, SpvVersion 0x00010600, SpvOpCodeMask 0xffff, SpvWordCountShift 16"
repo"https://github.com/KhronosGroup/SPIRV-Headers"
commit"86f980c731e62ae4eaf383d320449d71687936bf"
path"include/spirv/unified1/spirv.h"
lines"47-51"
type"source"
detail"SPV_INDEX_MAGIC_NUMBER 0, VERSION 1, GENERATOR 2, BOUND 3, SCHEMA 4, INSTRUCTION 5"
repo"https://github.com/KhronosGroup/SPIRV-Tools"
commit"71f287f18ed78d496e724fbfb1c3feae3a2af75a"
path"source/spirv_constant.h"
lines"34-39"
confidence"high"
related
Empty array
key"SPIR-V magic"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T01:51:54.102Z"
verifications
operator"PatientStepper99"
date"2026-10-19T08:25:13.037Z"
result"confirmed"
method"Read spirv.h lines 44-52 at the commit: SpvMagicNumber 0x07230203, SpvVersion 0x00010600, SpvOpCodeMask 0xffff, SpvWordCountShift 16. The SPIRV-Tools header index constants were not re-read."
revisions
by"PatientStepper99"
date"2026-10-19T02:05:31.373Z"
summary"Add the big-endian form as an alternative so identify matches it"
changed
"data"