From 3ea046cf49057a76c3e1ce8e4b5860dfd54757a7 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Thu, 27 Feb 2025 14:32:25 +0200 Subject: [PATCH] Document bug with global session teardown in user guide This closes #6344. --- docs/user-guide/08-compiling.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/user-guide/08-compiling.md b/docs/user-guide/08-compiling.md index c600b8cbb9..1a730e26bd 100644 --- a/docs/user-guide/08-compiling.md +++ b/docs/user-guide/08-compiling.md @@ -603,6 +603,10 @@ for compiling GLSL code. Without this setting, compiling GLSL code will result i > Currently, the global session type is *not* thread-safe. > Applications that wish to compile on multiple threads will need to ensure that each concurrent thread compiles with a distinct global session. +> #### Note #### +> Currently, the global session should be freed after any objects created from it. +> See [issue 6344](https://github.com/shader-slang/slang/issues/6344). + ### Creating a Session A _session_ uses the interface `slang::ISession`, and represents a scope for compilation with a consistent set of compiler options.