SPV: Fix #807: use --hlsl-offsets to allow hlsl-style offsets in a buffer.
Corresponds to the EShMsgHlslOffsets flag in messages. Works for both GLSL and HLSL.
This commit is contained in:
parent
6f1e595dbc
commit
4f1403ed1b
12 changed files with 276 additions and 10 deletions
|
|
@ -726,6 +726,8 @@ bool ProcessDeferred(
|
|||
intermediate.setSpv(spvVersion);
|
||||
if (spvVersion.vulkan >= 100)
|
||||
intermediate.setOriginUpperLeft();
|
||||
if (messages & EShMsgHlslOffsets) // source-language independent
|
||||
intermediate.setHlslOffsets();
|
||||
SetupBuiltinSymbolTable(version, profile, spvVersion, source);
|
||||
|
||||
TSymbolTable* cachedTable = SharedSymbolTables[MapVersionToIndex(version)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue