diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-09 17:15:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-09 17:15:39 -0700 |
| commit | 611fa55fcc91f36b3202490c6fd2235d32300150 (patch) | |
| tree | 67f06601c7bdd8aec0812f3302f6e981bf52c82e /docs/user-guide/08-compiling.md | |
| parent | 75481ea3b0654eeb727cabc718258984e7753e02 (diff) | |
reword documentation around precompiled modules. (#5249)
Diffstat (limited to 'docs/user-guide/08-compiling.md')
| -rw-r--r-- | docs/user-guide/08-compiling.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/user-guide/08-compiling.md b/docs/user-guide/08-compiling.md index c9771a89e..0160cd4df 100644 --- a/docs/user-guide/08-compiling.md +++ b/docs/user-guide/08-compiling.md @@ -54,7 +54,8 @@ It is allowed, and indeed common, for a translation unit to contain only a singl For example, when adapting an existing codebase with many `.hlsl` files, it is appropriate to compile each `.hlsl` file as its own translation unit. A modernized codebase that uses modular `include` feature as documented in [Modules and Access Control](modules) might decide to compile multiple `.slang` files in a single directory as a single translation unit. -The result of compiling a translation unit is a module in Slang's internal intermediate representation (IR). The compiled module can then be serialized to a `.slang-module` binary file and loaded/imported just as `.slang` files. +The result of compiling a translation unit is a module in Slang's internal intermediate representation (IR). The compiled module can then be serialized to a `.slang-module` binary file. The binary file can then be loaded via the +`ISession::loadModuleFromIRBlob` function or `import`ed in slang code the same way as modules written in `.slang` files. ### Entry Points |
