diff options
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... */ |
