diff options
author | David Robillard <d@drobilla.net> | 2020-11-21 17:48:19 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-25 14:18:04 +0100 |
commit | 3e9a2e01da169007b6fc16492f812055645f6d5f (patch) | |
tree | e761ca334ee9b0e3bd91b3a6f83ab1373dd7aa7f /bindings/cxx/include/pugl/vulkan.hpp | |
parent | 6426b03476fb91efbd90acd599472010f5474390 (diff) | |
download | pugl-3e9a2e01da169007b6fc16492f812055645f6d5f.tar.gz pugl-3e9a2e01da169007b6fc16492f812055645f6d5f.tar.bz2 pugl-3e9a2e01da169007b6fc16492f812055645f6d5f.zip |
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.
Diffstat (limited to 'bindings/cxx/include/pugl/vulkan.hpp')
-rw-r--r-- | bindings/cxx/include/pugl/vulkan.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/cxx/include/pugl/vulkan.hpp b/bindings/cxx/include/pugl/vulkan.hpp index 5ce8acd..aaa221f 100644 --- a/bindings/cxx/include/pugl/vulkan.hpp +++ b/bindings/cxx/include/pugl/vulkan.hpp @@ -142,14 +142,14 @@ getInstanceExtensions() noexcept /// @copydoc puglCreateSurface inline VkResult -createSurface(const VulkanLoader& loader, +createSurface(PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr, View& view, VkInstance instance, const VkAllocationCallbacks* const allocator, VkSurfaceKHR* const surface) noexcept { const VkResult r = puglCreateSurface( - loader.cobj(), view.cobj(), instance, allocator, surface); + vkGetInstanceProcAddr, view.cobj(), instance, allocator, surface); return (!r && !surface) ? VK_ERROR_INITIALIZATION_FAILED : r; } |