Compilation constants are constants defined in the create info. They cannot be changed after the shader is created. It is a replacement to macros with added type safety. Reuse most of the logic from Specialization constants. Pull Request: https://projects.blender.org/blender/blender/pulls/139703