Function Prototype

vkSubmitDebugUtilsMessageEXT

Inject a message into a debug stream

To intentionally submit a debug message, call:

void vkSubmitDebugUtilsMessageEXT(
    VkInstance instance,
    VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
    VkDebugUtilsMessageTypeFlagsEXT messageTypes,
    const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData);

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 messenger was registered.

Valid Usage

VUID-vkSubmitDebugUtilsMessageEXT-objectType-02591

The objectType member of each element of pCallbackData→pObjects must not be VK_OBJECT_TYPE_UNKNOWN