summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/render-vk.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-01-27 10:02:44 -0800
committerGitHub <noreply@github.com>2021-01-27 10:02:44 -0800
commit615dfba810964bed1caad8ecb87850c8eb1544b4 (patch)
tree3fefe8c801a15213ca16eb947ce305a5ed69c6fa /tools/gfx/vulkan/render-vk.cpp
parenta90c850735664e2928e4cc961442a126c6859b97 (diff)
Make own a slang session. (#1678)
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index 5afe3e3b4..21034d167 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -1033,6 +1033,8 @@ VkPipelineShaderStageCreateInfo VKRenderer::compileEntryPoint(
SlangResult VKRenderer::initialize(const Desc& desc, void* inWindowHandle)
{
+ SLANG_RETURN_ON_FAIL(slangContext.initialize(desc.slang, SLANG_SPIRV, "sm_5_1"));
+
SLANG_RETURN_ON_FAIL(m_module.init());
SLANG_RETURN_ON_FAIL(m_api.initGlobalProcs(m_module));