From 8000e0ede34e920cc7f37d69a335d74a472eff42 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 22 Jan 2025 09:40:15 -0800 Subject: Cache and reuse glsl module. (#6152) * Cache and reuse glsl module. * Fix. * Implement record/replay for the new api. * Fix record replay. * Fix test. --- tools/test-server/test-server-main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/test-server') diff --git a/tools/test-server/test-server-main.cpp b/tools/test-server/test-server-main.cpp index 1f1fbd066..633a23d7e 100644 --- a/tools/test-server/test-server-main.cpp +++ b/tools/test-server/test-server-main.cpp @@ -220,7 +220,9 @@ slang::IGlobalSession* TestServer::getOrCreateGlobalSession() if (!m_session) { // Just create the global session in the regular way if there isn't one set - if (SLANG_FAILED(slang_createGlobalSession(SLANG_API_VERSION, m_session.writeRef()))) + SlangGlobalSessionDesc desc = {}; + desc.enableGLSL = true; + if (SLANG_FAILED(slang_createGlobalSession2(&desc, m_session.writeRef()))) { return nullptr; } -- cgit v1.2.3