diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-10-31 15:02:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-31 15:02:18 -0400 |
| commit | f59df3814a514cab01f69a24e3330d13de3f9c92 (patch) | |
| tree | e8178e2ea376556b79d66c342547134f92640f34 /slang.h | |
| parent | 72f86c8273b196d204213f02e73ba772201f903d (diff) | |
Reference IR modules with entry point (#1101)
* Added RiffReadHelper
* Move type to fourCC in Chunk simplifies some code.
* Make MemoryArena able to track external blocks.
Allow ownership of Data to vary.
Changed IR serialization to use moved allocations to avoid copies.
As it turns out all of the array writes could use unowned data, but doing so requires the IRData to stay in scope longer than IRSerialData, which it does at the moment - but perhaps needs better naming or a control for the feature.
* Write out slang-module container.
* WIP on -r option.
Loading modules - with -r.
* Making the serialized-module run (without using imported module).
* Split compiling module from the test.
* Separate module compilation with a function working.
* Remove serialization test as not used.
* Fix warning on gcc.
* Updated test to have types across module boundary.
* Allow entry point declaration.
A test that tries to build with just an entry point declaration and a module.
* Try to make link work with multiple modules.
* Multi module linking first pass working.
* Multi module test working with -module-name option
* Use isDefinition - for determining to add decorations to entry point lowering.
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1327,7 +1327,7 @@ extern "C" /** Add a distinct translation unit to the compilation request - `name` is optional. + `name` is optional. Returns the zero-based index of the translation unit created. */ SLANG_API int spAddTranslationUnit( @@ -1335,6 +1335,14 @@ extern "C" SlangSourceLanguage language, char const* name); + + /** Set a default module name. Translation units will default to this module name if one is not + passed. If not set each translation unit will get a unique name. + */ + SLANG_API void spSetDefaultModuleName( + SlangCompileRequest* request, + const char* defaultModuleName); + /** Add a preprocessor definition that is scoped to a single translation unit. @param translationUnitIndex The index of the translation unit to get the definition. |
