summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.cpp')
-rw-r--r--source/slang/slang-compiler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp
index 491655643..fbdb91ac7 100644
--- a/source/slang/slang-compiler.cpp
+++ b/source/slang/slang-compiler.cpp
@@ -2329,6 +2329,17 @@ namespace Slang
return false;
}
+ bool CodeGenContext::shouldSkipSPIRVValidation()
+ {
+ if (auto endToEndReq = isEndToEndCompile())
+ {
+ if (endToEndReq->m_skipSPIRVValidation)
+ return true;
+ }
+
+ return false;
+ }
+
bool CodeGenContext::shouldDumpIR()
{
if (getTargetReq()->getTargetFlags() & SLANG_TARGET_FLAG_DUMP_IR)