summaryrefslogtreecommitdiffstats
path: root/slang.h
diff options
context:
space:
mode:
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/slang.h b/slang.h
index 6c00e8f01..0d9c0b44a 100644
--- a/slang.h
+++ b/slang.h
@@ -3526,6 +3526,12 @@ namespace slang
/** Get the time in seconds spent in the slang and downstream compiler.
*/
virtual SLANG_NO_THROW void SLANG_MCALL getCompilerElapsedTime(double* outTotalTime, double* outDownstreamTime) = 0;
+
+ /** Specify a spirv.core.grammar.json file to load and use when
+ * parsing and checking any SPIR-V code
+ */
+ virtual SLANG_NO_THROW SlangResult SLANG_MCALL setSPIRVCoreGrammar(
+ char const* jsonPath) = 0;
};
#define SLANG_UUID_IGlobalSession IGlobalSession::getTypeGuid()