summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorTim Foley <tim.foley.is@gmail.com>2017-07-10 19:45:21 -0700
committerGitHub <noreply@github.com>2017-07-10 19:45:21 -0700
commita923aff63a7b0d8847a50459361111347e3c527e (patch)
treee53bfd90d2b9e4b04d22f58548999a33b7944d46 /slang.h
parent5577e2d5e8bb374a00d9ecdd8e2c667ace546036 (diff)
parent22c7a4de0c3810fcfc1099843e42b315c366a7c5 (diff)
Merge pull request #67 from kyaoNV/spirv
SPIR-V Support
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/slang.h b/slang.h
index 87419bf45..f5da206ce 100644
--- a/slang.h
+++ b/slang.h
@@ -314,7 +314,7 @@ extern "C"
spGetTranslationUnitCount(
SlangCompileRequest* request);
- /** Get the output code associated with a specific translation unit
+ /** Get the output code associated with a specific translation unit.
The lifetime of the output pointer is the same as `request`.
*/
@@ -322,7 +322,7 @@ extern "C"
SlangCompileRequest* request,
int translationUnitIndex);
- /** Get the output code associated with a specific entry point.
+ /** Get the output source code associated with a specific entry point.
The lifetime of the output pointer is the same as `request`.
*/
@@ -330,6 +330,15 @@ extern "C"
SlangCompileRequest* request,
int entryPointIndex);
+ /** Get the output bytecode associated with a specific entry point.
+
+ The lifetime of the output pointer is the same as `request`.
+ */
+ SLANG_API void const* spGetEntryPointCode(
+ SlangCompileRequest* request,
+ int entryPointIndex,
+ size_t* outSize);
+
/* Note(tfoley): working on new reflection interface...
*/