Khronos SPIR-V Registry

Khronos SPIR-V Registry

SPIR-V is a binary intermediate language for representing graphical-shader stages and compute kernels for multiple Khronos APIs, such as OpenCL, OpenGL, and Vulkan.

The registry contains:

SPIR-V is a successor to the original Khronos SPIR, which supported only OpenCL device programs, and defines a new language.

SPIR-V 1.1 Specification, Headers, and Documentation

SPIR-V 1.1, released April 18, 2016.

Extended Instruction Sets

There are separate specifications describing the extended instruction set for several Khronos APIs:

SPIR-V Extensions

  1. SPV_AMD_shader_explicit_vertex_parameter (HTML)
  2. SPV_AMD_shader_trinary_minmax (HTML)
  3. SPV_AMD_gcn_shader (HTML)
  4. SPV_KHR_shader_ballot (HTML)
  5. SPV_AMD_shader_ballot (HTML)
  6. SPV_AMD_gpu_shader_half_float (HTML)
  7. SPV_KHR_shader_draw_parameters (HTML)
  8. SPV_KHR_subgroup_vote (HTML)

XML Registry

The SPIR-V XML Registry is the canonical document defining reserved vendor IDs and opcode ranges. It is available in the Khronos GitHub project at spir-v.xml.

If you need a vendor ID or a reserved opcode range for your implementation, please file an issue or pull request in the SPIRV-Headers project.

SPIR-V 1.0 and Extended Instruction Set Headers

Providing Feedback on the Registry

Khronos welcomes feedback on SPIR-V. To provide feedback, please file an issue in the SPIRV-Headers project.