You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a global session is created, the Slang system will load its internal representation of the _core module_ that the compiler provides to user code.
596
597
The core module can take a significant amount of time to load, so applications are advised to use a single global session if possible, rather than creating and then disposing of one for each compile.
597
598
599
+
If you want to enable GLSL compatibility mode, you need to set `SlangGlobalSessionDesc::enableGLSL` to `true` when calling `createGlobalSession()`. This will load the necessary GLSL intrinsic module
600
+
for compiling GLSL code. Without this setting, compiling GLSL code will result in an error.
601
+
598
602
> #### Note ####
599
603
> Currently, the global session type is *not* thread-safe.
600
604
> Applications that wish to compile on multiple threads will need to ensure that each concurrent thread compiles with a distinct global session.
@@ -874,6 +878,7 @@ The only functions which are currently thread safe are
0 commit comments