summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorKai-Hwa Yao <kyao@nvidia.com>2017-07-10 13:50:16 -0700
committerKai-Hwa Yao <kyao@nvidia.com>2017-07-10 17:49:35 -0700
commit7c0ebeee95cb72f086a261ed6c55f33571bb62db (patch)
tree037b716c36ced7fea574c231405c05bf2d58e6a0 /slang.h
parent4bb88c4a45707fb88150aa7952b4c9b9f55b1749 (diff)
Refactored compile output to work with raw data instead of Strings
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/slang.h b/slang.h
index 87419bf45..56d962490 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,16 @@ extern "C"
SlangCompileRequest* request,
int translationUnitIndex);
- /** Get the output code associated with a specific entry point.
+ /** Get the output bytecode associated with a specific translation unit.
+
+ The lifetime of the output pointer is the same as `request`.
+ */
+ SLANG_API void const* spGetTranslationUnitCode(
+ SlangCompileRequest* request,
+ int translationUnitIndex,
+ size_t* outSize);
+
+ /** Get the output source code associated with a specific entry point.
The lifetime of the output pointer is the same as `request`.
*/
@@ -330,6 +339,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...
*/