add optimizerAllowExpandedIDBound to SpvOptions

This option increases the max_id_bound in the optimizer to 0x3FFFFFFF, and then runs a
compact-id pass if the final result has a max_id greater than the standard limit of 0x3FFFFF.
This commit is contained in:
Malcolm Bechard 2024-07-30 16:06:37 -04:00 committed by arcady-lunarg
parent 7e896697dc
commit 8590f62c14
3 changed files with 13 additions and 0 deletions

View file

@ -237,6 +237,7 @@ typedef struct glslang_spv_options_s {
bool emit_nonsemantic_shader_debug_info;
bool emit_nonsemantic_shader_debug_source;
bool compile_only;
bool optimize_allow_expanded_id_bound;
} glslang_spv_options_t;
#ifdef __cplusplus