Skip to content

Commit bdd0f69

Browse files
committed
Use vk::ResultValue<> to adapt the latest vulkan-sdk
Since 8ba8294c86d0 ("Update for Vulkan-Docs 1.3.212") in the repo [Vulkan-Headers](KhronosGroup/Vulkan-Headers@8ba8294#diff-a83f956c7aeb2b6dee7ffa2f249c0d98a2cfad6e157fe8438e372a5267afaeffL5986-R6086), vk::createResultValue is renamed as vk::createResultValueType. And in the recent versions (after 1.3.282), vk::createResultValueType has been encapsulated under namespace ::detail, so presumably users have to construct a vk::ResultValue<> on their own. Signed-off-by: Luc Ma <[email protected]>
1 parent 190f081 commit bdd0f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/glfw/glfw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ vk::SurfaceKHR Window::createWindowSurface(GLFWwindow* window, const vk::Instanc
2929
VkSurfaceKHR rawSurface;
3030
vk::Result result =
3131
static_cast<vk::Result>(glfwCreateWindowSurface((VkInstance)instance, window, reinterpret_cast<const VkAllocationCallbacks*>(pAllocator), &rawSurface));
32-
return vk::createResultValue(result, rawSurface, "vk::CommandBuffer::begin");
32+
return {vk::ResultValue<VkSurfaceKHR>(result, rawSurface).value};
3333
}
3434
#endif
3535

0 commit comments

Comments
 (0)