# Khronos Authors - SPIR-V Compilation (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article3.5c705a01b476.png) ## Metadata **Review**:: [readwise.io](https://readwise.io/bookreview/40428112) **Source**:: #from/readwise #from/reader **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Khronos Authors]] **Full Title**:: SPIR-V Compilation **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **URL**:: [www.khronos.org](https://www.khronos.org/opengl/wiki/SPIR-V/Compilation) **Host**:: [[www.khronos.org]] **Highlighted**:: [[2024-05-11]] **Created**:: [[2024-05-12]] ## Highlights - SPIR-V has a specific binaryFormat​: the enumerator GL_SHADER_BINARY_FORMAT_SPIR_V. ([View Highlight](https://read.readwise.io/read/01hxm29163mw5sty06nvxprdc5)) ^718325281 - While a shader object has a SPIR-V binary loaded into it, the object becomes slightly different. [glGetShaderiv(shader, GL_SPIR_V_BINARY)](https://www.khronos.org/opengl/wiki/GLAPI/glGetShader) will return GL_TRUE. ([View Highlight](https://read.readwise.io/read/01hxm2966dxbbzc4s97rpvj3sy)) ^718325288 - Before a SPIR-V shader object can be used, you must specify which entry-point to use and provide values for any specialization constants used by that entry-point. ([View Highlight](https://read.readwise.io/read/01hxm288j5qk2j7qbrddmf9215)) ^718325234 `glSpecializeShader`