Class XrDebugUtilsMessengerCallbackEXT
- java.lang.Object
-
- org.lwjgl.system.Callback
-
- org.lwjgl.openxr.XrDebugUtilsMessengerCallbackEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,XrDebugUtilsMessengerCallbackEXTI,org.lwjgl.system.CallbackI,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public abstract class XrDebugUtilsMessengerCallbackEXT extends org.lwjgl.system.Callback implements XrDebugUtilsMessengerCallbackEXTI
Type of callback function invoked by the debug utils.C Specification
typedef XrBool32 (XRAPI_PTR *PFN_xrDebugUtilsMessengerCallbackEXT)( XrDebugUtilsMessageSeverityFlagsEXT messageSeverity, XrDebugUtilsMessageTypeFlagsEXT messageTypes, const XrDebugUtilsMessengerCallbackDataEXT* callbackData, void* userData);Description
The callback must not call
DestroyDebugUtilsMessengerEXT.The callback returns an
XrBool32that indicates to the calling layer the application’s desire to abort the call. A value ofTRUEindicates that the application wants to abort this call. If the application returnsFALSE, the function must not be aborted. Applications should always returnFALSEso that they see the same behavior with and without validation layers enabled.If the application returns
TRUEfrom its callback and the OpenXR call being aborted returns anXrResult, the layer will returnERROR_VALIDATION_FAILURE.The object pointed to by
callbackData(and any pointers in it recursively) must be valid during the lifetime of the triggered callback. It may become invalid afterwards.See Also
XrDebugUtilsMessengerCreateInfoEXT,CreateDebugUtilsMessengerEXTType
XrBool32 (*XrDebugUtilsMessengerCallbackEXTI.invoke(long, long, long, long)) ( XrDebugUtilsMessageSeverityFlagsEXT messageSeverity, XrDebugUtilsMessageTypeFlagsEXT messageTypes, XrDebugUtilsMessengerCallbackDataEXT const *callbackData, void *userData )
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from interface org.lwjgl.openxr.XrDebugUtilsMessengerCallbackEXTI
CIF
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XrDebugUtilsMessengerCallbackEXTcreate(long functionPointer)Creates aXrDebugUtilsMessengerCallbackEXTinstance from the specified function pointer.static XrDebugUtilsMessengerCallbackEXTcreate(XrDebugUtilsMessengerCallbackEXTI instance)Creates aXrDebugUtilsMessengerCallbackEXTinstance that delegates to the specifiedXrDebugUtilsMessengerCallbackEXTIinstance.static XrDebugUtilsMessengerCallbackEXTcreateSafe(long functionPointer)-
Methods inherited from class org.lwjgl.system.Callback
address, equals, free, free, get, getSafe, hashCode, toString
-
Methods inherited from interface org.lwjgl.openxr.XrDebugUtilsMessengerCallbackEXTI
callback, getCallInterface, invoke
-
-
-
-
Method Detail
-
create
public static XrDebugUtilsMessengerCallbackEXT create(long functionPointer)
Creates aXrDebugUtilsMessengerCallbackEXTinstance from the specified function pointer.- Returns:
- the new
XrDebugUtilsMessengerCallbackEXT
-
createSafe
@Nullable public static XrDebugUtilsMessengerCallbackEXT createSafe(long functionPointer)
-
create
public static XrDebugUtilsMessengerCallbackEXT create(XrDebugUtilsMessengerCallbackEXTI instance)
Creates aXrDebugUtilsMessengerCallbackEXTinstance that delegates to the specifiedXrDebugUtilsMessengerCallbackEXTIinstance.
-
-