diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-12-04 13:49:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-04 13:49:26 -0500 |
| commit | 1e5ec5ca8c73e91c63b787e69c7286728f510b5e (patch) | |
| tree | 033d61c6df3b3d9567918a34f56c0fdda23bba80 /slang.h | |
| parent | 0b4c1f63226eeff400eaa59be2331f0a480fd7b5 (diff) | |
Setting downstream compiler (#1144)
* WIP setting downstream compiler.
* Setting default downstream compiler for a source type.
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -615,6 +615,7 @@ extern "C" SLANG_SOURCE_LANGUAGE_GLSL, SLANG_SOURCE_LANGUAGE_C, SLANG_SOURCE_LANGUAGE_CPP, + SLANG_SOURCE_LANGUAGE_COUNT_OF, }; typedef unsigned int SlangProfileID; @@ -2836,6 +2837,25 @@ namespace slang @return The build tag string */ virtual SLANG_NO_THROW const char* SLANG_MCALL getBuildTagString() = 0; + + /* For a given source language set the default compiler. + If a default cannot be chosen (for example the target cannot be achieved by the default), + the default will not be used. + + @param sourceLanguage the source language + @param defaultCompiler the default compiler for that language + @return + */ + virtual SLANG_NO_THROW SlangResult SLANG_MCALL setDefaultDownstreamCompiler( + SlangSourceLanguage sourceLanguage, + SlangPassThrough defaultCompiler) = 0; + + /* For a source type get the default compiler + + @param sourceLanguage the source language + @return The downstream compiler for that source language */ + virtual SlangPassThrough SLANG_MCALL getDefaultDownstreamCompiler( + SlangSourceLanguage sourceLanguage) = 0; }; #define SLANG_UUID_IGlobalSession { 0xc140b5fd, 0xc78, 0x452e, { 0xba, 0x7c, 0x1a, 0x1e, 0x70, 0xc7, 0xf7, 0x1c } }; |
