Due to the nature of the OpenXR interface, there is very little error information available to the developer and application. By using the XR_EXT_debug_utils extension, developers can obtain more information. When combined with validation layers, even more detailed feedback on the application’s use of OpenXR will be provided.
This extension provides the following capabilities:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT
XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT
XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT
XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT
XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT
XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT
XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT
XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: |
| public static final int | XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT
XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: |
| public static final String | XR_EXT_DEBUG_UTILS_EXTENSION_NAME
The extension name. |
| public static final int | XR_EXT_debug_utils_SPEC_VERSION
The extension specification version. |
| public static final int | XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT
Extends |
| public static final int | XR_TYPE_DEBUG_UTILS_LABEL_EXT
Extends |
| public static final int | XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT
Extends |
| public static final int | XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT
Extends |
| public static final int | XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long createInfo, long messenger)
Unsafe version of: |
| public static int | nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, long labelInfo)
Unsafe version of: |
| public static int | nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long labelInfo)
Unsafe version of: |
| public static int | nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameInfo)
Unsafe version of: |
| public static int | nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, long callbackData)
Unsafe version of: |
| public static int | xrCreateDebugUtilsMessengerEXT(XrInstance
the instance the messenger will be used with. instance, XrDebugUtilsMessengerCreateInfoEXT points to an createInfo, PointerBuffer XrDebugUtilsMessengerCreateInfoEXT structure, which contains the callback pointer as well as defines the conditions under which this messenger will trigger the callback.a pointer to which the created messenger)XrDebugUtilsMessengerEXT object is returned.Creates a debug messenger. |
| public static int | xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT
the messenger)XrDebugUtilsMessengerEXT object to destroy. messenger is an externally synchronized object and must not be used on more than one thread at a time. This means that DestroyDebugUtilsMessengerEXT must not be called when a callback is active.Destroys a debug messenger. |
| public static int | xrSessionBeginDebugUtilsLabelRegionEXT(XrSession
the session, XrDebugUtilsLabelEXT XrSession that a label region should be associated with.the labelInfo)XrDebugUtilsLabelEXT containing the label information for the region that should be begun.Session begin debug utils label region. |
| public static int | xrSessionEndDebugUtilsLabelRegionEXT(XrSession
the session)XrSession that a label region should be associated with.Session end debug utils label region. |
| public static int | xrSessionInsertDebugUtilsLabelEXT(XrSession
the session, XrDebugUtilsLabelEXT XrSession that a label region should be associated with.the labelInfo)XrDebugUtilsLabelEXT containing the label information for the region that should be begun.Session insert debug utils label. |
| public static int | xrSetDebugUtilsObjectNameEXT(XrInstance
the instance, XrDebugUtilsObjectNameInfoEXT XrInstance that the object was created under.a pointer to an instance of the nameInfo)XrDebugUtilsObjectNameInfoEXT structure specifying the parameters of the name to set on the object.Sets debug utils object name. |
| public static int | xrSubmitDebugUtilsMessageEXT(XrInstance
the debug stream’s instance, long XrInstance.a single bit value of messageSeverity, long XrDebugUtilsMessageSeverityFlagsEXT severity of this event/message.an messageTypes, XrDebugUtilsMessengerCallbackDataEXT XrDebugUtilsMessageTypeFlagsEXT bitmask of XrDebugUtilsMessageTypeFlagBitsEXT specifying which types of event to identify this message with.contains all the callback related data in the callbackData)XrDebugUtilsMessengerCallbackDataEXT structure.Submits debug utils message. |
| XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: | |
| XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT | back to summary |
|---|---|
| public static final int XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT Enum values: | |
| XR_EXT_DEBUG_UTILS_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_EXT_DEBUG_UTILS_EXTENSION_NAME The extension name. | |
| XR_EXT_debug_utils_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_EXT_debug_utils_SPEC_VERSION The extension specification version. | |
| XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT | back to summary |
|---|---|
| public static final int XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT Extends | |
| XR_TYPE_DEBUG_UTILS_LABEL_EXT | back to summary |
|---|---|
| public static final int XR_TYPE_DEBUG_UTILS_LABEL_EXT Extends Enum values: | |
| XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT | back to summary |
|---|---|
| public static final int XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT Extends Enum values: | |
| XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT | back to summary |
|---|---|
| public static final int XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT Extends Enum values: | |
| XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT | back to summary |
|---|---|
| public static final int XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT Extends Enum values: | |
| EXTDebugUtils | back to summary |
|---|---|
| protected EXTDebugUtils() | |
| nxrCreateDebugUtilsMessengerEXT | back to summary |
|---|---|
| public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long createInfo, long messenger) Unsafe version of: | |
| nxrSessionBeginDebugUtilsLabelRegionEXT | back to summary |
|---|---|
| public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, long labelInfo) Unsafe version of: | |
| nxrSessionInsertDebugUtilsLabelEXT | back to summary |
|---|---|
| public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long labelInfo) Unsafe version of: | |
| nxrSetDebugUtilsObjectNameEXT | back to summary |
|---|---|
| public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameInfo) Unsafe version of: | |
| nxrSubmitDebugUtilsMessageEXT | back to summary |
|---|---|
| public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, long callbackData) Unsafe version of: | |
| xrCreateDebugUtilsMessengerEXT | back to summary |
|---|---|
| public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, XrDebugUtilsMessengerCreateInfoEXT createInfo, PointerBuffer messenger) Creates a debug messenger. C Specification
Valid Usage (Implicit)
Thread Safety
Return Codes
The application must ensure that When an event of interest occurs a debug messenger calls its See Also
| |
| xrDestroyDebugUtilsMessengerEXT | back to summary |
|---|---|
| public static int xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger) Destroys a debug messenger. C Specification
Valid Usage (Implicit)
Thread Safety
Return Codes
The application must ensure that See Also
| |
| xrSessionBeginDebugUtilsLabelRegionEXT | back to summary |
|---|---|
| public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, XrDebugUtilsLabelEXT labelInfo) Session begin debug utils label region. C Specification
Valid Usage (Implicit)
Return Codes
The See Also
| |
| xrSessionEndDebugUtilsLabelRegionEXT | back to summary |
|---|---|
| public static int xrSessionEndDebugUtilsLabelRegionEXT(XrSession session) Session end debug utils label region. C Specification
Valid Usage
Valid Usage (Implicit)
Return Codes
This function ends the last label region begun with the
| |
| xrSessionInsertDebugUtilsLabelEXT | back to summary |
|---|---|
| public static int xrSessionInsertDebugUtilsLabelEXT(XrSession session, XrDebugUtilsLabelEXT labelInfo) Session insert debug utils label. C Specification
Valid Usage (Implicit)
Return Codes
The
See Also
| |
| xrSetDebugUtilsObjectNameEXT | back to summary |
|---|---|
| public static int xrSetDebugUtilsObjectNameEXT(XrInstance instance, XrDebugUtilsObjectNameInfoEXT nameInfo) Sets debug utils object name. C Specification
Valid Usage
Valid Usage (Implicit)
Thread Safety
Return Codes
Applications may change the name associated with an object simply by calling See Also
| |
| xrSubmitDebugUtilsMessageEXT | back to summary |
|---|---|
| public static int xrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, XrDebugUtilsMessengerCallbackDataEXT callbackData) Submits debug utils message. C Specification
Valid Usage
Valid Usage (Implicit)
Return Codes
The application can also produce a debug message, and submit it into the OpenXR messaging system. 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 userData value that was defined at the time the messenger was created. See Also
| |