Function Prototype
vkCreateDebugReportCallbackEXT
Create a debug report callback object
Debug report callbacks give more detailed feedback on the application’s use of Vulkan when events of interest occur.
To register a debug report callback, an application uses vkCreateDebugReportCallbackEXT.
VkResult vkCreateDebugReportCallbackEXT(
VkInstance instance,
const VkDebugReportCallbackCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkDebugReportCallbackEXT* pCallback);
pub fn create_debug_report_callback_ext(
instance: vk::Instance,
p_create_info: *const vk::DebugReportCallbackCreateInfoEXT,
p_allocator: *const vk::AllocationCallbacks,
p_callback: *mut vk::DebugReportCallbackEXT,
) -> vk::Result;
instanceis the instance the callback will be logged on.pCreateInfois a pointer to a VkDebugReportCallbackCreateInfoEXT structure defining the conditions under which this callback will be called.pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.pCallbackis a pointer to a VkDebugReportCallbackEXT handle in which the created object is returned.
Valid Usage (Implicit)
VUID-vkCreateDebugReportCallbackEXT-instance-parameter
instance must be a valid VkInstance handle
VUID-vkCreateDebugReportCallbackEXT-pCreateInfo-parameter
pCreateInfo must be a valid pointer to a valid VkDebugReportCallbackCreateInfoEXT structure
VUID-vkCreateDebugReportCallbackEXT-pAllocator-parameter
If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
VUID-vkCreateDebugReportCallbackEXT-pCallback-parameter
pCallback must be a valid pointer to a VkDebugReportCallbackEXT handle
Parent
VK_EXT_debug_reportType
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED