From a303e5615a82a84170c69fd01eb8376eb5e47a3f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 14 Sep 2017 02:14:32 +1000 Subject: [PATCH] build: quick tests for vk::native support --- physical_device.cpp | 2 +- tools/hello.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/physical_device.cpp b/physical_device.cpp index 9a1f0ad..ed055a9 100644 --- a/physical_device.cpp +++ b/physical_device.cpp @@ -63,7 +63,7 @@ VkSurfaceCapabilitiesKHR physical_device::surface_capabilities (surface &_surface) const { return error::try_query ( - vkGetPhysicalDeviceSurfaceCapabilitiesKHR, native (), _surface.native () + vkGetPhysicalDeviceSurfaceCapabilitiesKHR, native (), _surface ); } diff --git a/tools/hello.cpp b/tools/hello.cpp index f5fcbb2..d490d3e 100644 --- a/tools/hello.cpp +++ b/tools/hello.cpp @@ -249,7 +249,7 @@ main (void) auto swapchain = cruft::vk::make_owned (ldevice, &swap_create_info, nullptr); std::vector swap_images = cruft::vk::error::try_values ( - vkGetSwapchainImagesKHR, ldevice.native (), swapchain->native () + vkGetSwapchainImagesKHR, ldevice, swapchain ); using image_view_ptr = cruft::vk::owned_ptr;