SPV: Add OpSource shader source code and file name.
This commit is contained in:
parent
136b1e2d5d
commit
121853f4df
12 changed files with 243 additions and 22 deletions
|
|
@ -728,6 +728,11 @@ bool ProcessDeferred(
|
|||
intermediate.setOriginUpperLeft();
|
||||
if ((messages & EShMsgHlslOffsets) || (messages & EShMsgReadHlsl))
|
||||
intermediate.setHlslOffsets();
|
||||
if (messages & EShMsgDebugInfo) {
|
||||
intermediate.setSourceFile(names[numPre]);
|
||||
for (int s = 0; s < numStrings; ++s)
|
||||
intermediate.addSourceText(strings[numPre]);
|
||||
}
|
||||
SetupBuiltinSymbolTable(version, profile, spvVersion, source);
|
||||
|
||||
TSymbolTable* cachedTable = SharedSymbolTables[MapVersionToIndex(version)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue