Package org.lwjgl.openxr
Class XrDebugUtilsObjectNameInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrDebugUtilsObjectNameInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrDebugUtilsObjectNameInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDebug utils object name info.Valid Usage
- If
objectTypeisOBJECT_TYPE_UNKNOWN,objectHandlemust not beNULL_HANDLE - If
objectTypeis notOBJECT_TYPE_UNKNOWN,objectHandlemust beNULL_HANDLEor an OpenXR handle of the type associated withobjectType
Valid Usage (Implicit)
- The
XR_EXT_debug_utilsextension must be enabled prior to usingXrDebugUtilsObjectNameInfoEXT typemust beTYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXTnextmust beNULLor a valid pointer to the next structure in a structure chainobjectTypemust be a validXrObjectTypevalue- If
objectNameis notNULL,objectNamemust be a null-terminated UTF-8 string
See Also
XrDebugUtilsMessengerCallbackDataEXT,SetDebugUtilsObjectNameEXTLayout
struct XrDebugUtilsObjectNameInfoEXT { XrStructureTypetype(); void const *next(); XrObjectTypeobjectType(); uint64_tobjectHandle(); char const *objectName(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrDebugUtilsObjectNameInfoEXT.BufferAn array ofXrDebugUtilsObjectNameInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
OBJECTHANDLE
OBJECTNAME
OBJECTTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrDebugUtilsObjectNameInfoEXT(java.nio.ByteBuffer container)Creates aXrDebugUtilsObjectNameInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrDebugUtilsObjectNameInfoEXTcalloc()Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated withmemCalloc.static XrDebugUtilsObjectNameInfoEXT.Buffercalloc(int capacity)Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated withmemCalloc.static XrDebugUtilsObjectNameInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrDebugUtilsObjectNameInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrDebugUtilsObjectNameInfoEXTcreate()Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated withBufferUtils.static XrDebugUtilsObjectNameInfoEXT.Buffercreate(int capacity)Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated withBufferUtils.static XrDebugUtilsObjectNameInfoEXTcreate(long address)Returns a newXrDebugUtilsObjectNameInfoEXTinstance for the specified memory address.static XrDebugUtilsObjectNameInfoEXT.Buffercreate(long address, int capacity)Create aXrDebugUtilsObjectNameInfoEXT.Bufferinstance at the specified memory.static XrDebugUtilsObjectNameInfoEXTcreateSafe(long address)static XrDebugUtilsObjectNameInfoEXT.BuffercreateSafe(long address, int capacity)static XrDebugUtilsObjectNameInfoEXTmalloc()Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated withmemAlloc.static XrDebugUtilsObjectNameInfoEXT.Buffermalloc(int capacity)Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated withmemAlloc.static XrDebugUtilsObjectNameInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrDebugUtilsObjectNameInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrDebugUtilsObjectNameInfoEXTnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnobjectHandle(long struct)Unsafe version ofobjectHandle().static voidnobjectHandle(long struct, long value)Unsafe version ofobjectHandle.static java.nio.ByteBuffernobjectName(long struct)Unsafe version ofobjectName().static voidnobjectName(long struct, java.nio.ByteBuffer value)Unsafe version ofobjectName.static java.lang.StringnobjectNameString(long struct)Unsafe version ofobjectNameString().static intnobjectType(long struct)Unsafe version ofobjectType().static voidnobjectType(long struct, int value)Unsafe version ofobjectType.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longobjectHandle()the object to be named.XrDebugUtilsObjectNameInfoEXTobjectHandle(long value)Sets the specified value to theobjectHandle()field.java.nio.ByteBufferobjectName()aNULLterminated UTF-8 string specifying the name to apply to objectHandle.XrDebugUtilsObjectNameInfoEXTobjectName(java.nio.ByteBuffer value)Sets the address of the specified encoded string to theobjectName()field.java.lang.StringobjectNameString()aNULLterminated UTF-8 string specifying the name to apply to objectHandle.intobjectType()anXrObjectTypespecifying the type of the object to be named.XrDebugUtilsObjectNameInfoEXTobjectType(int value)Sets the specified value to theobjectType()field.XrDebugUtilsObjectNameInfoEXTset(int type, long next, int objectType, long objectHandle, java.nio.ByteBuffer objectName)Initializes this struct with the specified values.XrDebugUtilsObjectNameInfoEXTset(XrDebugUtilsObjectNameInfoEXT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrDebugUtilsObjectNameInfoEXTtype(int value)Sets the specified value to thetype()field.XrDebugUtilsObjectNameInfoEXTtype$Default()Sets theTYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrDebugUtilsObjectNameInfoEXT
public XrDebugUtilsObjectNameInfoEXT(java.nio.ByteBuffer container)
Creates aXrDebugUtilsObjectNameInfoEXTinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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.
-
objectType
public int objectType()
anXrObjectTypespecifying the type of the object to be named.
-
objectHandle
public long objectHandle()
the object to be named.
-
objectName, objectNameString
@Nullable public java.nio.ByteBuffer objectName() @Nullable public java.lang.String objectNameString()
aNULLterminated UTF-8 string specifying the name to apply to objectHandle.
-
type
public XrDebugUtilsObjectNameInfoEXT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrDebugUtilsObjectNameInfoEXT type$Default()
Sets theTYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXTvalue to thetype()field.
-
next
public XrDebugUtilsObjectNameInfoEXT next(long value)
Sets the specified value to thenext()field.
-
objectType
public XrDebugUtilsObjectNameInfoEXT objectType(int value)
Sets the specified value to theobjectType()field.
-
objectHandle
public XrDebugUtilsObjectNameInfoEXT objectHandle(long value)
Sets the specified value to theobjectHandle()field.
-
objectName
public XrDebugUtilsObjectNameInfoEXT objectName(@Nullable java.nio.ByteBuffer value)
Sets the address of the specified encoded string to theobjectName()field.
-
set
public XrDebugUtilsObjectNameInfoEXT set(int type, long next, int objectType, long objectHandle, @Nullable java.nio.ByteBuffer objectName)
Initializes this struct with the specified values.
-
set
public XrDebugUtilsObjectNameInfoEXT set(XrDebugUtilsObjectNameInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrDebugUtilsObjectNameInfoEXT malloc()
Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrDebugUtilsObjectNameInfoEXT calloc()
Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrDebugUtilsObjectNameInfoEXT create()
Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated withBufferUtils.
-
create
public static XrDebugUtilsObjectNameInfoEXT create(long address)
Returns a newXrDebugUtilsObjectNameInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static XrDebugUtilsObjectNameInfoEXT createSafe(long address)
-
malloc
public static XrDebugUtilsObjectNameInfoEXT.Buffer malloc(int capacity)
Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrDebugUtilsObjectNameInfoEXT.Buffer calloc(int capacity)
Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrDebugUtilsObjectNameInfoEXT.Buffer create(int capacity)
Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrDebugUtilsObjectNameInfoEXT.Buffer create(long address, int capacity)
Create aXrDebugUtilsObjectNameInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrDebugUtilsObjectNameInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrDebugUtilsObjectNameInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrDebugUtilsObjectNameInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrDebugUtilsObjectNameInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrDebugUtilsObjectNameInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrDebugUtilsObjectNameInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrDebugUtilsObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nobjectType
public static int nobjectType(long struct)
Unsafe version ofobjectType().
-
nobjectHandle
public static long nobjectHandle(long struct)
Unsafe version ofobjectHandle().
-
nobjectName
@Nullable public static java.nio.ByteBuffer nobjectName(long struct)
Unsafe version ofobjectName().
-
nobjectNameString
@Nullable public static java.lang.String nobjectNameString(long struct)
Unsafe version ofobjectNameString().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nobjectType
public static void nobjectType(long struct, int value)Unsafe version ofobjectType.
-
nobjectHandle
public static void nobjectHandle(long struct, long value)Unsafe version ofobjectHandle.
-
nobjectName
public static void nobjectName(long struct, @Nullable java.nio.ByteBuffer value)Unsafe version ofobjectName.
-
-