| 429 | |
| 430 | template <vkb::BindingType bindingType> |
| 431 | inline VulkanSample<bindingType>::~VulkanSample() |
| 432 | { |
| 433 | if (device) |
| 434 | { |
| 435 | device->get_handle().waitIdle(); |
| 436 | } |
| 437 | |
| 438 | scene.reset(); |
| 439 | stats.reset(); |
| 440 | gui.reset(); |
| 441 | render_context.reset(); |
| 442 | device.reset(); |
| 443 | |
| 444 | if (surface) |
| 445 | { |
| 446 | instance->get_handle().destroySurfaceKHR(surface); |
| 447 | } |
| 448 | if (debug_utils_messenger) |
| 449 | { |
| 450 | instance->get_handle().destroyDebugUtilsMessengerEXT(debug_utils_messenger); |
| 451 | } |
| 452 | if (debug_report_callback) |
| 453 | { |
| 454 | instance->get_handle().destroyDebugReportCallbackEXT(debug_report_callback); |
| 455 | } |
| 456 | |
| 457 | instance.reset(); |
| 458 | } |
| 459 | |
| 460 | template <vkb::BindingType bindingType> |
| 461 | inline void VulkanSample<bindingType>::add_device_extension(const char *extension, bool optional) |
nothing calls this directly
no test coverage detected