Package org.lwjgl.openxr
Class XrRenderModelBufferFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrRenderModelBufferFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrRenderModelBufferFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe buffer containing the data for the render model.Description
XrRenderModelBufferFBis used when loading the binary data for a render model.XrRenderModelBufferFBmust be provided when callingLoadRenderModelFB.Valid Usage (Implicit)
- The
XR_FB_render_modelextension must be enabled prior to usingXrRenderModelBufferFB typemust beTYPE_RENDER_MODEL_BUFFER_FBnextmust beNULLor a valid pointer to the next structure in a structure chain- If
bufferCapacityInputis not 0,buffermust be a pointer to an array ofbufferCapacityInputuint8_tvalues
See Also
Layout
struct XrRenderModelBufferFB { XrStructureTypetype(); void *next(); uint32_tbufferCapacityInput(); uint32_tbufferCountOutput(); uint8_t *buffer(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrRenderModelBufferFB.BufferAn array ofXrRenderModelBufferFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUFFER
BUFFERCAPACITYINPUT
BUFFERCOUNTOUTPUT
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrRenderModelBufferFB(java.nio.ByteBuffer container)Creates aXrRenderModelBufferFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferbuffer()a pointer to an application-allocated array that will be filled with the render model binary data.XrRenderModelBufferFBbuffer(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thebuffer()field.intbufferCapacityInput()the capacity of thebuffer, or 0 to retrieve the required capacity.XrRenderModelBufferFBbufferCapacityInput(int value)Sets the specified value to thebufferCapacityInput()field.intbufferCountOutput()the count ofuint8_tbufferwritten, or the required capacity in the case thatbufferCapacityInputis 0.XrRenderModelBufferFBbufferCountOutput(int value)Sets the specified value to thebufferCountOutput()field.static XrRenderModelBufferFBcalloc()Returns a newXrRenderModelBufferFBinstance allocated withmemCalloc.static XrRenderModelBufferFB.Buffercalloc(int capacity)Returns a newXrRenderModelBufferFB.Bufferinstance allocated withmemCalloc.static XrRenderModelBufferFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelBufferFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelBufferFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelBufferFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRenderModelBufferFBcreate()Returns a newXrRenderModelBufferFBinstance allocated withBufferUtils.static XrRenderModelBufferFB.Buffercreate(int capacity)Returns a newXrRenderModelBufferFB.Bufferinstance allocated withBufferUtils.static XrRenderModelBufferFBcreate(long address)Returns a newXrRenderModelBufferFBinstance for the specified memory address.static XrRenderModelBufferFB.Buffercreate(long address, int capacity)Create aXrRenderModelBufferFB.Bufferinstance at the specified memory.static XrRenderModelBufferFBcreateSafe(long address)static XrRenderModelBufferFB.BuffercreateSafe(long address, int capacity)static XrRenderModelBufferFBmalloc()Returns a newXrRenderModelBufferFBinstance allocated withmemAlloc.static XrRenderModelBufferFB.Buffermalloc(int capacity)Returns a newXrRenderModelBufferFB.Bufferinstance allocated withmemAlloc.static XrRenderModelBufferFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelBufferFB.Bufferinstance allocated on the specifiedMemoryStack.static XrRenderModelBufferFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRenderModelBufferFBinstance allocated on the specifiedMemoryStack.static java.nio.ByteBuffernbuffer(long struct)Unsafe version ofbuffer.static voidnbuffer(long struct, java.nio.ByteBuffer value)Unsafe version ofbuffer.static intnbufferCapacityInput(long struct)Unsafe version ofbufferCapacityInput().static voidnbufferCapacityInput(long struct, int value)Sets the specified value to thebufferCapacityInputfield of the specifiedstruct.static intnbufferCountOutput(long struct)Unsafe version ofbufferCountOutput().static voidnbufferCountOutput(long struct, int value)Unsafe version ofbufferCountOutput.longnext()NULLor a pointer to the next structure in a structure chain.XrRenderModelBufferFBnext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrRenderModelBufferFBset(int type, long next, int bufferCapacityInput, int bufferCountOutput, java.nio.ByteBuffer buffer)Initializes this struct with the specified values.XrRenderModelBufferFBset(XrRenderModelBufferFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrRenderModelBufferFBtype(int value)Sets the specified value to thetype()field.XrRenderModelBufferFBtype$Default()Sets theTYPE_RENDER_MODEL_BUFFER_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrRenderModelBufferFB
public XrRenderModelBufferFB(java.nio.ByteBuffer container)
Creates aXrRenderModelBufferFBinstance 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.
-
bufferCapacityInput
public int bufferCapacityInput()
the capacity of thebuffer, or 0 to retrieve the required capacity.
-
bufferCountOutput
public int bufferCountOutput()
the count ofuint8_tbufferwritten, or the required capacity in the case thatbufferCapacityInputis 0.
-
buffer
@Nullable public java.nio.ByteBuffer buffer()
a pointer to an application-allocated array that will be filled with the render model binary data.
-
type
public XrRenderModelBufferFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrRenderModelBufferFB type$Default()
Sets theTYPE_RENDER_MODEL_BUFFER_FBvalue to thetype()field.
-
next
public XrRenderModelBufferFB next(long value)
Sets the specified value to thenext()field.
-
bufferCapacityInput
public XrRenderModelBufferFB bufferCapacityInput(int value)
Sets the specified value to thebufferCapacityInput()field.
-
bufferCountOutput
public XrRenderModelBufferFB bufferCountOutput(int value)
Sets the specified value to thebufferCountOutput()field.
-
buffer
public XrRenderModelBufferFB buffer(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thebuffer()field.
-
set
public XrRenderModelBufferFB set(int type, long next, int bufferCapacityInput, int bufferCountOutput, @Nullable java.nio.ByteBuffer buffer)
Initializes this struct with the specified values.
-
set
public XrRenderModelBufferFB set(XrRenderModelBufferFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrRenderModelBufferFB malloc()
Returns a newXrRenderModelBufferFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrRenderModelBufferFB calloc()
Returns a newXrRenderModelBufferFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrRenderModelBufferFB create()
Returns a newXrRenderModelBufferFBinstance allocated withBufferUtils.
-
create
public static XrRenderModelBufferFB create(long address)
Returns a newXrRenderModelBufferFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrRenderModelBufferFB createSafe(long address)
-
malloc
public static XrRenderModelBufferFB.Buffer malloc(int capacity)
Returns a newXrRenderModelBufferFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrRenderModelBufferFB.Buffer calloc(int capacity)
Returns a newXrRenderModelBufferFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrRenderModelBufferFB.Buffer create(int capacity)
Returns a newXrRenderModelBufferFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrRenderModelBufferFB.Buffer create(long address, int capacity)
Create aXrRenderModelBufferFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrRenderModelBufferFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrRenderModelBufferFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelBufferFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrRenderModelBufferFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelBufferFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrRenderModelBufferFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelBufferFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrRenderModelBufferFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRenderModelBufferFB.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().
-
nbufferCapacityInput
public static int nbufferCapacityInput(long struct)
Unsafe version ofbufferCapacityInput().
-
nbufferCountOutput
public static int nbufferCountOutput(long struct)
Unsafe version ofbufferCountOutput().
-
nbuffer
@Nullable public static java.nio.ByteBuffer nbuffer(long struct)
Unsafe version ofbuffer.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nbufferCapacityInput
public static void nbufferCapacityInput(long struct, int value)Sets the specified value to thebufferCapacityInputfield of the specifiedstruct.
-
nbufferCountOutput
public static void nbufferCountOutput(long struct, int value)Unsafe version ofbufferCountOutput.
-
nbuffer
public static void nbuffer(long struct, @Nullable java.nio.ByteBuffer value)Unsafe version ofbuffer.
-
-