build: quick tests for vk::native support

This commit is contained in:
Danny Robson 2017-09-14 02:14:32 +10:00
parent fe6a28b99c
commit a303e5615a
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ VkSurfaceCapabilitiesKHR
physical_device::surface_capabilities (surface &_surface) const physical_device::surface_capabilities (surface &_surface) const
{ {
return error::try_query ( return error::try_query (
vkGetPhysicalDeviceSurfaceCapabilitiesKHR, native (), _surface.native () vkGetPhysicalDeviceSurfaceCapabilitiesKHR, native (), _surface
); );
} }

View File

@ -249,7 +249,7 @@ main (void)
auto swapchain = cruft::vk::make_owned<cruft::vk::swapchain> (ldevice, &swap_create_info, nullptr); auto swapchain = cruft::vk::make_owned<cruft::vk::swapchain> (ldevice, &swap_create_info, nullptr);
std::vector<VkImage> swap_images = cruft::vk::error::try_values ( std::vector<VkImage> swap_images = cruft::vk::error::try_values (
vkGetSwapchainImagesKHR, ldevice.native (), swapchain->native () vkGetSwapchainImagesKHR, ldevice, swapchain
); );
using image_view_ptr = cruft::vk::owned_ptr<cruft::vk::image_view>; using image_view_ptr = cruft::vk::owned_ptr<cruft::vk::image_view>;