summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vk-api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vk-api.cpp')
-rw-r--r--tools/gfx/vk-api.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/vk-api.cpp b/tools/gfx/vk-api.cpp
index 4030e43ba..6e250e281 100644
--- a/tools/gfx/vk-api.cpp
+++ b/tools/gfx/vk-api.cpp
@@ -49,11 +49,15 @@ Slang::Result VulkanApi::initInstanceProcs(VkInstance instance)
VK_API_ALL_INSTANCE_PROCS(VK_API_GET_INSTANCE_PROC)
+ // Get optional
+ VK_API_INSTANCE_PROCS_OPT(VK_API_GET_INSTANCE_PROC)
+
if (!areDefined(ProcType::Instance))
{
return SLANG_FAIL;
}
+
m_instance = instance;
return SLANG_OK;
}