Package org.lwjgl.openxr
Class XrDebugUtilsMessengerCallbackDataEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrDebugUtilsMessengerCallbackDataEXT>
org.lwjgl.openxr.XrDebugUtilsMessengerCallbackDataEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrDebugUtilsMessengerCallbackDataEXT
extends org.lwjgl.system.Struct<XrDebugUtilsMessengerCallbackDataEXT>
implements org.lwjgl.system.NativeResource
Debug utils messenger callback data.
Valid Usage (Implicit)
- The
XR_EXT_debug_utilsextension must be enabled prior to usingXrDebugUtilsMessengerCallbackDataEXT typemust beTYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
messageIdis notNULL,messageIdmust be a null-terminated UTF-8 string - If
functionNameis notNULL,functionNamemust be a null-terminated UTF-8 string messagemust be a null-terminated UTF-8 string
An XrDebugUtilsMessengerCallbackDataEXT is a messenger object that handles passing along debug messages to a provided debug callback.
Note
This structure should only be considered valid during the lifetime of the triggered callback.
The labels listed inside sessionLabels are organized in time order, with the most recently generated label appearing first, and the oldest label appearing last.
See Also
XrDebugUtilsLabelEXT, XrDebugUtilsObjectNameInfoEXT, SubmitDebugUtilsMessageEXT
Layout
struct XrDebugUtilsMessengerCallbackDataEXT {
XrStructureType type();
void const * next();
char const * messageId();
char const * functionName();
char const * message();
uint32_t objectCount();
XrDebugUtilsObjectNameInfoEXT * objects();
uint32_t sessionLabelCount();
XrDebugUtilsLabelEXT * sessionLabels();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrDebugUtilsMessengerCallbackDataEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrDebugUtilsMessengerCallbackDataEXT(ByteBuffer container) Creates aXrDebugUtilsMessengerCallbackDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance for the specified memory address.create(long address, int capacity) Create aXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance at the specified memory.static @Nullable XrDebugUtilsMessengerCallbackDataEXTcreateSafe(long address) static @Nullable XrDebugUtilsMessengerCallbackDataEXT.BuffercreateSafe(long address, int capacity) @Nullable ByteBufferaNULLterminated string that identifies the OpenXR function that was executing at the time the message callback was triggered.functionName(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thefunctionName()field.@Nullable StringaNULLterminated string that identifies the OpenXR function that was executing at the time the message callback was triggered.malloc()Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated on the specifiedMemoryStack.message()aNULLterminated string detailing the trigger conditions.message(ByteBuffer value) Sets the address of the specified encoded string to themessage()field.@Nullable ByteBufferaNULLterminated string that identifies the message in a unique way.messageId(@Nullable ByteBuffer value) Sets the address of the specified encoded string to themessageId()field.@Nullable StringaNULLterminated string that identifies the message in a unique way.aNULLterminated string detailing the trigger conditions.longnext()NULLor a pointer to the next structure in a structure chain.next(long value) Sets the specified value to thenext()field.static @Nullable ByteBuffernfunctionName(long struct) Unsafe version offunctionName().static voidnfunctionName(long struct, @Nullable ByteBuffer value) Unsafe version offunctionName.static @Nullable StringnfunctionNameString(long struct) Unsafe version offunctionNameString().static ByteBuffernmessage(long struct) Unsafe version ofmessage().static voidnmessage(long struct, ByteBuffer value) Unsafe version ofmessage.static @Nullable ByteBuffernmessageId(long struct) Unsafe version ofmessageId().static voidnmessageId(long struct, @Nullable ByteBuffer value) Unsafe version ofmessageId.static @Nullable StringnmessageIdString(long struct) Unsafe version ofmessageIdString().static StringnmessageString(long struct) Unsafe version ofmessageString().static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intnobjectCount(long struct) Unsafe version ofobjectCount().static voidnobjectCount(long struct, int value) Sets the specified value to theobjectCountfield of the specifiedstruct.static @Nullable XrDebugUtilsObjectNameInfoEXT.Buffernobjects(long struct) Unsafe version ofobjects().static voidnobjects(long struct, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) Unsafe version ofobjects.static intnsessionLabelCount(long struct) Unsafe version ofsessionLabelCount().static voidnsessionLabelCount(long struct, int value) Sets the specified value to thesessionLabelCountfield of the specifiedstruct.static @Nullable XrDebugUtilsLabelEXT.BuffernsessionLabels(long struct) Unsafe version ofsessionLabels().static voidnsessionLabels(long struct, @Nullable XrDebugUtilsLabelEXT.Buffer value) Unsafe version ofsessionLabels.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.inta count of items contained in theobjectsarray.objectCount(int value) Sets the specified value to theobjectCount()field.@Nullable XrDebugUtilsObjectNameInfoEXT.Bufferobjects()NULLor a pointer to an array ofXrDebugUtilsObjectNameInfoEXTobjects related to the detected issue.objects(@Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsObjectNameInfoEXT.Bufferto theobjects()field.inta count of items contained in thesessionLabelsarray.sessionLabelCount(int value) Sets the specified value to thesessionLabelCount()field.@Nullable XrDebugUtilsLabelEXT.BufferNULLor a pointer to an array ofXrDebugUtilsLabelEXTactive in the currentXrSessionat the time the callback was triggered.sessionLabels(@Nullable XrDebugUtilsLabelEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsLabelEXT.Bufferto thesessionLabels()field.set(int type, long next, @Nullable ByteBuffer messageId, @Nullable ByteBuffer functionName, ByteBuffer message, int objectCount, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer objects, int sessionLabelCount, @Nullable XrDebugUtilsLabelEXT.Buffer sessionLabels) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.type(int value) Sets the specified value to thetype()field.Sets theTYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXTvalue to thetype()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
MESSAGEID
public static final int MESSAGEIDThe struct member offsets. -
FUNCTIONNAME
public static final int FUNCTIONNAMEThe struct member offsets. -
MESSAGE
public static final int MESSAGEThe struct member offsets. -
OBJECTCOUNT
public static final int OBJECTCOUNTThe struct member offsets. -
OBJECTS
public static final int OBJECTSThe struct member offsets. -
SESSIONLABELCOUNT
public static final int SESSIONLABELCOUNTThe struct member offsets. -
SESSIONLABELS
public static final int SESSIONLABELSThe struct member offsets.
-
-
Constructor Details
-
XrDebugUtilsMessengerCallbackDataEXT
Creates aXrDebugUtilsMessengerCallbackDataEXTinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrDebugUtilsMessengerCallbackDataEXT>
-
type
public int type()theXrStructureTypeof this structure. -
next
public long next()NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. -
messageId
aNULLterminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may beNULLif no unique message identifier is associated with the message. -
messageIdString
aNULLterminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may beNULLif no unique message identifier is associated with the message. -
functionName
aNULLterminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may beNULLin cases where it is difficult to determine the originating OpenXR function. -
functionNameString
aNULLterminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may beNULLin cases where it is difficult to determine the originating OpenXR function. -
message
aNULLterminated string detailing the trigger conditions. -
messageString
aNULLterminated string detailing the trigger conditions. -
objectCount
public int objectCount()a count of items contained in theobjectsarray. This may be 0. -
objects
NULLor a pointer to an array ofXrDebugUtilsObjectNameInfoEXTobjects related to the detected issue. The array is roughly in order of importance, but the 0th element is always guaranteed to be the most important object for this message. -
sessionLabelCount
public int sessionLabelCount()a count of items contained in thesessionLabelsarray. This may be 0. -
sessionLabels
NULLor a pointer to an array ofXrDebugUtilsLabelEXTactive in the currentXrSessionat the time the callback was triggered. Refer to Session Labels for more information. -
type
Sets the specified value to thetype()field. -
type$Default
Sets theTYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXTvalue to thetype()field. -
next
Sets the specified value to thenext()field. -
messageId
Sets the address of the specified encoded string to themessageId()field. -
functionName
Sets the address of the specified encoded string to thefunctionName()field. -
message
Sets the address of the specified encoded string to themessage()field. -
objectCount
Sets the specified value to theobjectCount()field. -
objects
public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsObjectNameInfoEXT.Bufferto theobjects()field. -
sessionLabelCount
Sets the specified value to thesessionLabelCount()field. -
sessionLabels
public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable XrDebugUtilsLabelEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsLabelEXT.Bufferto thesessionLabels()field. -
set
public XrDebugUtilsMessengerCallbackDataEXT set(int type, long next, @Nullable ByteBuffer messageId, @Nullable ByteBuffer functionName, ByteBuffer message, int objectCount, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer objects, int sessionLabelCount, @Nullable XrDebugUtilsLabelEXT.Buffer sessionLabels) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withBufferUtils. -
create
Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrDebugUtilsMessengerCallbackDataEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrDebugUtilsMessengerCallbackDataEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrDebugUtilsMessengerCallbackDataEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nmessageId
Unsafe version ofmessageId(). -
nmessageIdString
Unsafe version ofmessageIdString(). -
nfunctionName
Unsafe version offunctionName(). -
nfunctionNameString
Unsafe version offunctionNameString(). -
nmessage
Unsafe version ofmessage(). -
nmessageString
Unsafe version ofmessageString(). -
nobjectCount
public static int nobjectCount(long struct) Unsafe version ofobjectCount(). -
nobjects
Unsafe version ofobjects(). -
nsessionLabelCount
public static int nsessionLabelCount(long struct) Unsafe version ofsessionLabelCount(). -
nsessionLabels
Unsafe version ofsessionLabels(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nmessageId
Unsafe version ofmessageId. -
nfunctionName
Unsafe version offunctionName. -
nmessage
Unsafe version ofmessage. -
nobjectCount
public static void nobjectCount(long struct, int value) Sets the specified value to theobjectCountfield of the specifiedstruct. -
nobjects
Unsafe version ofobjects. -
nsessionLabelCount
public static void nsessionLabelCount(long struct, int value) Sets the specified value to thesessionLabelCountfield of the specifiedstruct. -
nsessionLabels
Unsafe version ofsessionLabels. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-