| 977 | } |
| 978 | |
| 979 | void ApiVulkanSample::handle_surface_changes() |
| 980 | { |
| 981 | VkSurfaceCapabilitiesKHR surface_properties; |
| 982 | VK_CHECK(vkGetPhysicalDeviceSurfaceCapabilitiesKHR(get_device().get_gpu().get_handle(), |
| 983 | get_render_context().get_swapchain().get_surface(), |
| 984 | &surface_properties)); |
| 985 | |
| 986 | if ((surface_properties.currentExtent.width != get_render_context().get_surface_extent().width || |
| 987 | surface_properties.currentExtent.height != get_render_context().get_surface_extent().height) && |
| 988 | (surface_properties.currentExtent.width != 0xFFFFFFFF && |
| 989 | surface_properties.currentExtent.height != 0xFFFFFFFF)) |
| 990 | { |
| 991 | resize(surface_properties.currentExtent.width, surface_properties.currentExtent.height); |
| 992 | } |
| 993 | } |
| 994 | |
| 995 | VkDescriptorBufferInfo ApiVulkanSample::create_descriptor(vkb::core::BufferC &buffer, VkDeviceSize size, VkDeviceSize offset) |
| 996 | { |
no test coverage detected