Graphics formats

SPIR-V module header

Build the five-word SPIR-V header with a version and ID bound.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

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.