Package org.lwjgl.openxr
Class XrUuidMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrUuidMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrUuidMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceUniversally Unique Identifier.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrUuidMSFT
See Also
XrSceneComponentMSFT,XrSceneComponentParentFilterInfoMSFT,XrSceneComponentsLocateInfoMSFT,XrSerializedSceneFragmentDataGetInfoMSFTLayout
struct XrUuidMSFT { uint8_tbytes()[16]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrUuidMSFT.BufferAn array ofXrUuidMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrUuidMSFT(java.nio.ByteBuffer container)Creates aXrUuidMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferbytes()a 128-bit Variant-1 Universally Unique Identifier.bytebytes(int index)a 128-bit Variant-1 Universally Unique Identifier.XrUuidMSFTbytes(int index, byte value)Sets the specified value at the specified index of thebytes()field.XrUuidMSFTbytes(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thebytes()field.static XrUuidMSFTcalloc()Returns a newXrUuidMSFTinstance allocated withmemCalloc.static XrUuidMSFT.Buffercalloc(int capacity)Returns a newXrUuidMSFT.Bufferinstance allocated withmemCalloc.static XrUuidMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrUuidMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrUuidMSFTcreate()Returns a newXrUuidMSFTinstance allocated withBufferUtils.static XrUuidMSFT.Buffercreate(int capacity)Returns a newXrUuidMSFT.Bufferinstance allocated withBufferUtils.static XrUuidMSFTcreate(long address)Returns a newXrUuidMSFTinstance for the specified memory address.static XrUuidMSFT.Buffercreate(long address, int capacity)Create aXrUuidMSFT.Bufferinstance at the specified memory.static XrUuidMSFTcreateSafe(long address)static XrUuidMSFT.BuffercreateSafe(long address, int capacity)static XrUuidMSFTmalloc()Returns a newXrUuidMSFTinstance allocated withmemAlloc.static XrUuidMSFT.Buffermalloc(int capacity)Returns a newXrUuidMSFT.Bufferinstance allocated withmemAlloc.static XrUuidMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrUuidMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStack.static java.nio.ByteBuffernbytes(long struct)Unsafe version ofbytes().static bytenbytes(long struct, int index)Unsafe version ofbytes.static voidnbytes(long struct, int index, byte value)Unsafe version ofbytes.static voidnbytes(long struct, java.nio.ByteBuffer value)Unsafe version ofbytes.XrUuidMSFTset(XrUuidMSFT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrUuidMSFT
public XrUuidMSFT(java.nio.ByteBuffer container)
Creates aXrUuidMSFTinstance 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
-
bytes
public java.nio.ByteBuffer bytes() public byte bytes(int index)
a 128-bit Variant-1 Universally Unique Identifier.
-
bytes
public XrUuidMSFT bytes(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thebytes()field.
-
bytes
public XrUuidMSFT bytes(int index, byte value)
Sets the specified value at the specified index of thebytes()field.
-
set
public XrUuidMSFT set(XrUuidMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrUuidMSFT malloc()
Returns a newXrUuidMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrUuidMSFT calloc()
Returns a newXrUuidMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrUuidMSFT create()
Returns a newXrUuidMSFTinstance allocated withBufferUtils.
-
create
public static XrUuidMSFT create(long address)
Returns a newXrUuidMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrUuidMSFT createSafe(long address)
-
malloc
public static XrUuidMSFT.Buffer malloc(int capacity)
Returns a newXrUuidMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrUuidMSFT.Buffer calloc(int capacity)
Returns a newXrUuidMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrUuidMSFT.Buffer create(int capacity)
Returns a newXrUuidMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrUuidMSFT.Buffer create(long address, int capacity)
Create aXrUuidMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrUuidMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrUuidMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrUuidMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrUuidMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrUuidMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrUuidMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbytes
public static java.nio.ByteBuffer nbytes(long struct)
Unsafe version ofbytes().
-
nbytes
public static byte nbytes(long struct, int index)Unsafe version ofbytes.
-
nbytes
public static void nbytes(long struct, java.nio.ByteBuffer value)Unsafe version ofbytes.
-
nbytes
public static void nbytes(long struct, int index, byte value)Unsafe version ofbytes.
-
-