To inject its own messages into the debug stream, call:
void vkDebugReportMessageEXT( VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage);
instanceis the debug stream’s VkInstance.
flagsspecifies the VkDebugReportFlagBitsEXT classification of this event/message.
objectTypeis a VkDebugReportObjectTypeEXT specifying the type of object being used or created at the time the event was triggered.
objectthis is the object where the issue was detected.
objectcan be VK_NULL_HANDLE if there is no object associated with the event.
locationis an application defined value.
messageCodeis an application defined value.
pLayerPrefixis the abbreviation of the component making this event/message.
pMessageis a null-terminated string detailing the trigger conditions.
The call will propagate through the layers and generate callback(s) as
indicated by the message’s flags.
The parameters are passed on to the callback in addition to the
pUserData value that was defined at the time the callback was
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.