Graphics formats
SPIR-V module header
Build the five-word SPIR-V header with a version and ID bound.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Write magic 07230203, version 0001xx00, generator, ID bound and schema zero as little-endian words.
Version 1.0, generator 0 and bound 1 produce a 20-byte header beginning 03 02 23 07.
Limits
Header bytes only. Choose a bound exceeding all IDs in the eventual module. No instructions or target-environment validation are included.