From 2ebf9555a54c00f45b1cd0bdd7f6c163120bb845 Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Thu, 27 Feb 2025 20:29:00 +0200 Subject: Document bug with global session teardown in user guide (#6479) This closes #6344. Co-authored-by: Yong He --- docs/user-guide/08-compiling.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/user-guide/08-compiling.md b/docs/user-guide/08-compiling.md index c600b8cbb..1a730e26b 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. -- cgit v1.2.3