Class XrDebugUtilsMessengerCreateInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrDebugUtilsMessengerCreateInfoEXT>
org.lwjgl.openxr.XrDebugUtilsMessengerCreateInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrDebugUtilsMessengerCreateInfoEXT extends org.lwjgl.system.Struct<XrDebugUtilsMessengerCreateInfoEXT> implements org.lwjgl.system.NativeResource
Debug utils messenger create info.
Valid Usage
  • userCallback must be a valid PFN_xrDebugUtilsMessengerCallbackEXT
Valid Usage (Implicit)

For each XrDebugUtilsMessengerEXT that is created the XrDebugUtilsMessengerCreateInfoEXT::messageSeverities and XrDebugUtilsMessengerCreateInfoEXT::messageTypes determine when that XrDebugUtilsMessengerCreateInfoEXT::userCallback is called. The process to determine if the user’s userCallback is triggered when an event occurs is as follows:

  • The runtime will perform a bitwise AND of the event’s XrDebugUtilsMessageSeverityFlagBitsEXT with the XrDebugUtilsMessengerCreateInfoEXT::messageSeverities provided during creation of the XrDebugUtilsMessengerEXT object.
  • If this results in 0, the message is skipped.
  • The runtime will perform bitwise AND of the event’s XrDebugUtilsMessageTypeFlagBitsEXT with the XrDebugUtilsMessengerCreateInfoEXT::messageTypes provided during the creation of the XrDebugUtilsMessengerEXT object.
  • If this results in 0, the message is skipped.
  • If the message of the current event is not skipped, the callback will be called with the message.

The callback will come directly from the component that detected the event, unless some other layer intercepts the calls for its own purposes (filter them in a different way, log to a system error log, etc.).

See Also

XrDebugUtilsMessengerCallbackEXT, CreateDebugUtilsMessengerEXT

Layout


 struct XrDebugUtilsMessengerCreateInfoEXT {
     XrStructureType type();
     void const * next();
     XrDebugUtilsMessageSeverityFlagsEXT messageSeverities();
     XrDebugUtilsMessageTypeFlagsEXT messageTypes();
     PFN_xrDebugUtilsMessengerCallbackEXT userCallback();
     void * userData();
 }