summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-09-09 01:39:03 -0700
committerGitHub <noreply@github.com>2021-09-09 01:39:03 -0700
commitcc075b76ee25876135584d31ec650776fcb69166 (patch)
tree119f7fcaae74df826f9a6503bb8144e799344824 /source/slang/slang-compiler.h
parentebb29e6c830cafe74ca64da416ded01fc59d208a (diff)
Fix `spSetDumpIntermediates`. (#1931)
Diffstat (limited to 'source/slang/slang-compiler.h')
-rwxr-xr-xsource/slang/slang-compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 727d21c3a..4ed30ed28 100755
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -1301,6 +1301,10 @@ namespace Slang
{
lineDirectiveMode = mode;
}
+ void setDumpIntermediates(bool value)
+ {
+ dumpIntermediates = value;
+ }
void addCapability(CapabilityAtom capability);
bool shouldEmitSPIRVDirectly()
@@ -1313,6 +1317,8 @@ namespace Slang
return (targetFlags & SLANG_TARGET_FLAG_GENERATE_WHOLE_PROGRAM) != 0;
}
+ bool shouldDumpIntermediates() { return dumpIntermediates; }
+
Linkage* getLinkage() { return linkage; }
CodeGenTarget getTarget() { return format; }
Profile getTargetProfile() { return targetProfile; }
@@ -1340,6 +1346,7 @@ namespace Slang
List<CapabilityAtom> rawCapabilities;
CapabilitySet cookedCapabilities;
LineDirectiveMode lineDirectiveMode = LineDirectiveMode::Default;
+ bool dumpIntermediates = false;
};
/// Are we generating code for a D3D API?