From f7cce780cd6a83fca9413abeafb32246999f4b99 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 31 Oct 2020 13:00:53 +0100 Subject: Use static polymorphism in C++ bindings This removes virtual function overhead, and the weird situation of having to include pugl.ipp once (or worse, for pugl to provide a binary C++ library). --- bindings/cxx/include/pugl/vulkan.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/cxx/include/pugl/vulkan.hpp') diff --git a/bindings/cxx/include/pugl/vulkan.hpp b/bindings/cxx/include/pugl/vulkan.hpp index a7b16cb..f9737e8 100644 --- a/bindings/cxx/include/pugl/vulkan.hpp +++ b/bindings/cxx/include/pugl/vulkan.hpp @@ -143,7 +143,7 @@ getInstanceExtensions() noexcept /// @copydoc puglCreateSurface inline VkResult createSurface(const VulkanLoader& loader, - View& view, + ViewBase& view, VkInstance instance, const VkAllocationCallbacks* const allocator, VkSurfaceKHR* const surface) noexcept -- cgit v1.2.1