MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / ~VulkanSample

Method ~VulkanSample

framework/vulkan_sample.h:431–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430template <vkb::BindingType bindingType>
431inline 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
460template <vkb::BindingType bindingType>
461inline void VulkanSample<bindingType>::add_device_extension(const char *extension, bool optional)

Callers

nothing calls this directly

Calls 2

get_handleMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected