summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorcheneym2 <acheney@nvidia.com>2024-09-05 14:59:28 -0400
committerGitHub <noreply@github.com>2024-09-05 11:59:28 -0700
commit313677160a186efebf83fab4df7d08dd119a5cd2 (patch)
treee12e159846f0b7b0e3567d028ad4a57cd9f001aa /include
parent33e8bfd43f66613f6f834fb0e1816ef43071f2e4 (diff)
Initial -embed-spirv support (#4974)
* Initial -embed-spirv support Add support for SPIR-V precompilation using the framework established for DXIL. Work on #4883 * SLANG_UNUSED * Add linkage attributes to exported spirv functions * Combine DXIL and SPIRV paths * Whitespace fix * Merge remaining precompiled spirv/dxil paths * Change inst accessors to return codegentarget * Add unit test for precompiled spirv --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'include')
-rw-r--r--include/slang.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/slang.h b/include/slang.h
index ed2966592..9755415b3 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -956,8 +956,7 @@ extern "C"
GenerateWholeProgram, // bool
UseUpToDateBinaryModule, // bool, when set, will only load
// precompiled modules if it is up-to-date with its source.
-
- EmbedDXIL, // bool
+ EmbedDownstreamIR, // bool
ForceDXLayout, // bool
CountOf,
};
@@ -4929,9 +4928,9 @@ namespace slang
int targetIndex,
bool value) = 0;
- virtual SLANG_NO_THROW void SLANG_MCALL setEmbedDXIL(bool value) = 0;
-
virtual SLANG_NO_THROW void SLANG_MCALL setTargetForceDXLayout(int targetIndex, bool value) = 0;
+
+ virtual SLANG_NO_THROW void SLANG_MCALL setTargetEmbedDownstreamIR(int targetIndex, bool value) = 0;
};
#define SLANG_UUID_ICompileRequest ICompileRequest::getTypeGuid()