Vulkan-API-Tutorials icon indicating copy to clipboard operation
Vulkan-API-Tutorials copied to clipboard

Validation callback

Open ghost opened this issue 7 years ago • 0 comments

Vulkan SDK 1.107.1 GPU 1060 gtx Windows 64bit

With VK_DEBUG_REPORT_DEBUG_BIT_EXT enabled the program crashes with access violation error.

But it got fixed if below mentioned lines are moved from setupDebug() to initDebug().

debug_callback_create_info.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT;
debug_callback_create_info.pfnCallback = VulkanDebugCallback;
debug_callback_create_info.flags =
		VK_DEBUG_REPORT_INFORMATION_BIT_EXT |
		VK_DEBUG_REPORT_WARNING_BIT_EXT |
		VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT |
		VK_DEBUG_REPORT_ERROR_BIT_EXT |
		VK_DEBUG_REPORT_DEBUG_BIT_EXT;

Thanks for creating this tutorial. :)

ghost avatar May 25 '18 05:05 ghost