diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-07-10 19:45:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-10 19:45:21 -0700 |
| commit | a923aff63a7b0d8847a50459361111347e3c527e (patch) | |
| tree | e53bfd90d2b9e4b04d22f58548999a33b7944d46 /slang.h | |
| parent | 5577e2d5e8bb374a00d9ecdd8e2c667ace546036 (diff) | |
| parent | 22c7a4de0c3810fcfc1099843e42b315c366a7c5 (diff) | |
Merge pull request #67 from kyaoNV/spirv
SPIR-V Support
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 13 |
1 files changed, 11 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,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... */ |
