feat: add option to map unused uniforms

This commit is contained in:
Kai Angulo 2024-10-28 00:05:51 -07:00
parent 5aa896ae05
commit ee04ba0786
7 changed files with 21 additions and 5 deletions

View file

@ -212,9 +212,10 @@ typedef enum {
GLSLANG_SHADER_AUTO_MAP_LOCATIONS = (1 << 1),
GLSLANG_SHADER_VULKAN_RULES_RELAXED = (1 << 2),
GLSLANG_SHADER_INVERT_Y = (1 << 3),
GLSLANG_SHADER_MAP_UNUSED_UNIFORMS = (1 << 4),
#ifdef ENABLE_HLSL
GLSLANG_SHADER_HLSL_IO_MAPPING = (1 << 4),
GLSLANG_SHADER_HLSL_FLATTEN_UNIFORM_ARRAYS = (1 << 5),
GLSLANG_SHADER_HLSL_IO_MAPPING = (1 << 5),
GLSLANG_SHADER_HLSL_FLATTEN_UNIFORM_ARRAYS = (1 << 6),
#endif
LAST_ELEMENT_MARKER(GLSLANG_SHADER_COUNT),
} glslang_shader_options_t;