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

@ -53,6 +53,7 @@ struct SpvOptions {
bool emitNonSemanticShaderDebugInfo {false};
bool emitNonSemanticShaderDebugSource{ false };
bool compileOnly{false};
bool optimizerAllowExpandedIDBound{false};
};
void GetSpirvVersion(std::string&);