Package org.lwjgl.openxr
Class XrDeserializeSceneFragmentMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrDeserializeSceneFragmentMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrDeserializeSceneFragmentMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDeserialize Scene Fragment.Valid Usage (Implicit)
- The
XR_MSFT_scene_understanding_serializationextension must be enabled prior to usingXrDeserializeSceneFragmentMSFT - If
bufferSizeis not 0,buffermust be a pointer to an array ofbufferSizeuint8_tvalues
See Also
Layout
struct XrDeserializeSceneFragmentMSFT { uint32_tbufferSize(); uint8_t const *buffer(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrDeserializeSceneFragmentMSFT.BufferAn array ofXrDeserializeSceneFragmentMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBUFFER
BUFFERSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description XrDeserializeSceneFragmentMSFT(java.nio.ByteBuffer container)Creates aXrDeserializeSceneFragmentMSFTinstance 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()an array ofuint_8data for the scene fragment to be deserialized.XrDeserializeSceneFragmentMSFTbuffer(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thebuffer()field.intbufferSize()the size of thebufferarray.XrDeserializeSceneFragmentMSFTbufferSize(int value)Sets the specified value to thebufferSize()field.static XrDeserializeSceneFragmentMSFTcalloc()Returns a newXrDeserializeSceneFragmentMSFTinstance allocated withmemCalloc.static XrDeserializeSceneFragmentMSFT.Buffercalloc(int capacity)Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated withmemCalloc.static XrDeserializeSceneFragmentMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrDeserializeSceneFragmentMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrDeserializeSceneFragmentMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrDeserializeSceneFragmentMSFTcreate()Returns a newXrDeserializeSceneFragmentMSFTinstance allocated withBufferUtils.static XrDeserializeSceneFragmentMSFT.Buffercreate(int capacity)Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated withBufferUtils.static XrDeserializeSceneFragmentMSFTcreate(long address)Returns a newXrDeserializeSceneFragmentMSFTinstance for the specified memory address.static XrDeserializeSceneFragmentMSFT.Buffercreate(long address, int capacity)Create aXrDeserializeSceneFragmentMSFT.Bufferinstance at the specified memory.static XrDeserializeSceneFragmentMSFTcreateSafe(long address)static XrDeserializeSceneFragmentMSFT.BuffercreateSafe(long address, int capacity)static XrDeserializeSceneFragmentMSFTmalloc()Returns a newXrDeserializeSceneFragmentMSFTinstance allocated withmemAlloc.static XrDeserializeSceneFragmentMSFT.Buffermalloc(int capacity)Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated withmemAlloc.static XrDeserializeSceneFragmentMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrDeserializeSceneFragmentMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrDeserializeSceneFragmentMSFTinstance 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 intnbufferSize(long struct)Unsafe version ofbufferSize().static voidnbufferSize(long struct, int value)Sets the specified value to thebufferSizefield of the specifiedstruct.XrDeserializeSceneFragmentMSFTset(int bufferSize, java.nio.ByteBuffer buffer)Initializes this struct with the specified values.XrDeserializeSceneFragmentMSFTset(XrDeserializeSceneFragmentMSFT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrDeserializeSceneFragmentMSFT
public XrDeserializeSceneFragmentMSFT(java.nio.ByteBuffer container)
Creates aXrDeserializeSceneFragmentMSFTinstance 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
-
bufferSize
public int bufferSize()
the size of thebufferarray.
-
buffer
@Nullable public java.nio.ByteBuffer buffer()
an array ofuint_8data for the scene fragment to be deserialized.
-
bufferSize
public XrDeserializeSceneFragmentMSFT bufferSize(int value)
Sets the specified value to thebufferSize()field.
-
buffer
public XrDeserializeSceneFragmentMSFT buffer(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thebuffer()field.
-
set
public XrDeserializeSceneFragmentMSFT set(int bufferSize, @Nullable java.nio.ByteBuffer buffer)
Initializes this struct with the specified values.
-
set
public XrDeserializeSceneFragmentMSFT set(XrDeserializeSceneFragmentMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrDeserializeSceneFragmentMSFT malloc()
Returns a newXrDeserializeSceneFragmentMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrDeserializeSceneFragmentMSFT calloc()
Returns a newXrDeserializeSceneFragmentMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrDeserializeSceneFragmentMSFT create()
Returns a newXrDeserializeSceneFragmentMSFTinstance allocated withBufferUtils.
-
create
public static XrDeserializeSceneFragmentMSFT create(long address)
Returns a newXrDeserializeSceneFragmentMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrDeserializeSceneFragmentMSFT createSafe(long address)
-
malloc
public static XrDeserializeSceneFragmentMSFT.Buffer malloc(int capacity)
Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrDeserializeSceneFragmentMSFT.Buffer calloc(int capacity)
Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrDeserializeSceneFragmentMSFT.Buffer create(int capacity)
Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrDeserializeSceneFragmentMSFT.Buffer create(long address, int capacity)
Create aXrDeserializeSceneFragmentMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrDeserializeSceneFragmentMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrDeserializeSceneFragmentMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrDeserializeSceneFragmentMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrDeserializeSceneFragmentMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrDeserializeSceneFragmentMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrDeserializeSceneFragmentMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrDeserializeSceneFragmentMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrDeserializeSceneFragmentMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbufferSize
public static int nbufferSize(long struct)
Unsafe version ofbufferSize().
-
nbuffer
@Nullable public static java.nio.ByteBuffer nbuffer(long struct)
Unsafe version ofbuffer.
-
nbufferSize
public static void nbufferSize(long struct, int value)Sets the specified value to thebufferSizefield of the specifiedstruct.
-
nbuffer
public static void nbuffer(long struct, @Nullable java.nio.ByteBuffer value)Unsafe version ofbuffer.
-
-