Package org.lwjgl.openxr
Class XrSpatialBufferEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSpatialBufferEXT {
XrSpatialBufferIdEXT bufferId;
XrSpatialBufferTypeEXT bufferType;
}-
Nested Class Summary
Nested ClassesNested 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSpatialBufferEXT(ByteBuffer container) Creates aXrSpatialBufferEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongbufferId()bufferId(long value) Sets the specified value to thebufferIdfield.intbufferType(int value) Sets the specified value to thebufferTypefield.static XrSpatialBufferEXTcalloc()Returns a newXrSpatialBufferEXTinstance allocated withmemCalloc.static XrSpatialBufferEXT.Buffercalloc(int capacity) Returns a newXrSpatialBufferEXT.Bufferinstance allocated withmemCalloc.static XrSpatialBufferEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSpatialBufferEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialBufferEXTcalloc(MemoryStack stack) Returns a newXrSpatialBufferEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSpatialBufferEXTcreate()Returns a newXrSpatialBufferEXTinstance allocated withBufferUtils.static XrSpatialBufferEXT.Buffercreate(int capacity) Returns a newXrSpatialBufferEXT.Bufferinstance allocated withBufferUtils.static XrSpatialBufferEXTcreate(long address) Returns a newXrSpatialBufferEXTinstance for the specified memory address.static XrSpatialBufferEXT.Buffercreate(long address, int capacity) Create aXrSpatialBufferEXT.Bufferinstance at the specified memory.static @Nullable XrSpatialBufferEXTcreateSafe(long address) static @Nullable XrSpatialBufferEXT.BuffercreateSafe(long address, int capacity) static XrSpatialBufferEXTmalloc()Returns a newXrSpatialBufferEXTinstance allocated withmemAlloc.static XrSpatialBufferEXT.Buffermalloc(int capacity) Returns a newXrSpatialBufferEXT.Bufferinstance allocated withmemAlloc.static XrSpatialBufferEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSpatialBufferEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrSpatialBufferEXTmalloc(MemoryStack stack) Returns a newXrSpatialBufferEXTinstance allocated on the specifiedMemoryStack.static longnbufferId(long struct) Unsafe version ofbufferId().static voidnbufferId(long struct, long value) Unsafe version ofbufferId.static intnbufferType(long struct) Unsafe version ofbufferType().static voidnbufferType(long struct, int value) Unsafe version ofbufferType.set(long bufferId, int bufferType) Initializes this struct with the specified values.set(XrSpatialBufferEXT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
BUFFERID
public static final int BUFFERIDThe struct member offsets. -
BUFFERTYPE
public static final int BUFFERTYPEThe struct member offsets.
-
-
Constructor Details
-
XrSpatialBufferEXT
Creates aXrSpatialBufferEXTinstance 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<XrSpatialBufferEXT>
-
bufferId
public long bufferId()- Returns:
- the value of the
bufferIdfield.
-
bufferType
public int bufferType()- Returns:
- the value of the
bufferTypefield.
-
bufferId
Sets the specified value to thebufferIdfield. -
bufferType
Sets the specified value to thebufferTypefield. -
set
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 newXrSpatialBufferEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSpatialBufferEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSpatialBufferEXTinstance allocated withBufferUtils. -
create
Returns a newXrSpatialBufferEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSpatialBufferEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSpatialBufferEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSpatialBufferEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSpatialBufferEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSpatialBufferEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSpatialBufferEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSpatialBufferEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSpatialBufferEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbufferId
public static long nbufferId(long struct) Unsafe version ofbufferId(). -
nbufferType
public static int nbufferType(long struct) Unsafe version ofbufferType(). -
nbufferId
public static void nbufferId(long struct, long value) Unsafe version ofbufferId. -
nbufferType
public static void nbufferType(long struct, int value) Unsafe version ofbufferType.
-