diff options
| author | Kai-Hwa Yao <kyao@nvidia.com> | 2017-07-10 13:50:16 -0700 |
|---|---|---|
| committer | Kai-Hwa Yao <kyao@nvidia.com> | 2017-07-10 17:49:35 -0700 |
| commit | 7c0ebeee95cb72f086a261ed6c55f33571bb62db (patch) | |
| tree | 037b716c36ced7fea574c231405c05bf2d58e6a0 /slang.h | |
| parent | 4bb88c4a45707fb88150aa7952b4c9b9f55b1749 (diff) | |
Refactored compile output to work with raw data instead of Strings
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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... */ |
