summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/slang.h b/slang.h
index 3766dd457..85e8b7449 100644
--- a/slang.h
+++ b/slang.h
@@ -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.