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,NativeResource,Pointer
public class XrDebugUtilsMessengerCallbackDataEXT
extends Struct<XrDebugUtilsMessengerCallbackDataEXT>
implements NativeResource
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
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(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 ByteBufferfunctionName(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thefunctionNamefield.@Nullable Stringmalloc()Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrDebugUtilsMessengerCallbackDataEXTinstance allocated on the specifiedMemoryStack.message()message(ByteBuffer value) Sets the address of the specified encoded string to themessagefield.@Nullable ByteBuffermessageId(@Nullable ByteBuffer value) Sets the address of the specified encoded string to themessageIdfield.@Nullable Stringlongnext()next(long value) Sets the specified value to thenextfield.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.intobjectCount(int value) Sets the specified value to theobjectCountfield.@Nullable XrDebugUtilsObjectNameInfoEXT.Bufferobjects()objects(@Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsObjectNameInfoEXT.Bufferto theobjectsfield.intsessionLabelCount(int value) Sets the specified value to thesessionLabelCountfield.@Nullable XrDebugUtilsLabelEXT.BuffersessionLabels(@Nullable XrDebugUtilsLabelEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsLabelEXT.Bufferto thesessionLabelsfield.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()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXTvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrDebugUtilsMessengerCallbackDataEXT>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
messageId
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themessageIdfield.
-
messageIdString
- Returns:
- the null-terminated string pointed to by the
messageIdfield.
-
functionName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefunctionNamefield.
-
functionNameString
- Returns:
- the null-terminated string pointed to by the
functionNamefield.
-
message
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by themessagefield.
-
messageString
- Returns:
- the null-terminated string pointed to by the
messagefield.
-
objectCount
public int objectCount()- Returns:
- the value of the
objectCountfield.
-
objects
- Returns:
- a
XrDebugUtilsObjectNameInfoEXT.Bufferview of the struct array pointed to by theobjectsfield.
-
sessionLabelCount
public int sessionLabelCount()- Returns:
- the value of the
sessionLabelCountfield.
-
sessionLabels
- Returns:
- a
XrDebugUtilsLabelEXT.Bufferview of the struct array pointed to by thesessionLabelsfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
messageId
Sets the address of the specified encoded string to themessageIdfield. -
functionName
Sets the address of the specified encoded string to thefunctionNamefield. -
message
Sets the address of the specified encoded string to themessagefield. -
objectCount
Sets the specified value to theobjectCountfield. -
objects
public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsObjectNameInfoEXT.Bufferto theobjectsfield. -
sessionLabelCount
Sets the specified value to thesessionLabelCountfield. -
sessionLabels
public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable XrDebugUtilsLabelEXT.Buffer value) Sets the address of the specifiedXrDebugUtilsLabelEXT.Bufferto thesessionLabelsfield. -
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
Returns a newXrDebugUtilsMessengerCallbackDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
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
-