From 3e9a2e01da169007b6fc16492f812055645f6d5f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 21 Nov 2020 17:48:19 +0100 Subject: Pass vkGetInstanceProcAddr to puglCreateSurface instead of a loader This allows puglCreateSurface() to be used with some other loader, or when linking to Vulkan at compile time. --- include/pugl/vulkan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/pugl/vulkan.h b/include/pugl/vulkan.h index 487ecda..05e13e2 100644 --- a/include/pugl/vulkan.h +++ b/include/pugl/vulkan.h @@ -117,7 +117,7 @@ puglGetInstanceExtensions(uint32_t* count); /** Create a Vulkan surface for a Pugl view. - @param loader The loader for Vulkan functions. + @param vkGetInstanceProcAddr Accessor for Vulkan functions. @param view The view the surface is to be displayed on. @param instance The Vulkan instance. @param allocator Vulkan allocation callbacks, may be NULL. @@ -125,7 +125,7 @@ puglGetInstanceExtensions(uint32_t* count); @return `VK_SUCCESS` on success, or a Vulkan error code. */ PUGL_API VkResult -puglCreateSurface(const PuglVulkanLoader* loader, +puglCreateSurface(PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr, PuglView* view, VkInstance instance, const VkAllocationCallbacks* allocator, -- cgit v1.2.1