Package org.lwjgl.openxr
Class XrSerializedSceneFragmentDataGetInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSerializedSceneFragmentDataGetInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSerializedSceneFragmentDataGetInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to get the serialized scene fragment data.Valid Usage (Implicit)
- The
XR_MSFT_scene_understanding_serializationextension must be enabled prior to usingXrSerializedSceneFragmentDataGetInfoMSFT typemust beTYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrUuidMSFT,GetSerializedSceneFragmentDataMSFTLayout
struct XrSerializedSceneFragmentDataGetInfoMSFT { XrStructureTypetype(); void const *next();XrUuidMSFTsceneFragmentId(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSerializedSceneFragmentDataGetInfoMSFT.BufferAn array ofXrSerializedSceneFragmentDataGetInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
SCENEFRAGMENTIDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSerializedSceneFragmentDataGetInfoMSFT(java.nio.ByteBuffer container)Creates aXrSerializedSceneFragmentDataGetInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSerializedSceneFragmentDataGetInfoMSFTcalloc()Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated withmemCalloc.static XrSerializedSceneFragmentDataGetInfoMSFT.Buffercalloc(int capacity)Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated withmemCalloc.static XrSerializedSceneFragmentDataGetInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSerializedSceneFragmentDataGetInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSerializedSceneFragmentDataGetInfoMSFTcreate()Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated withBufferUtils.static XrSerializedSceneFragmentDataGetInfoMSFT.Buffercreate(int capacity)Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated withBufferUtils.static XrSerializedSceneFragmentDataGetInfoMSFTcreate(long address)Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance for the specified memory address.static XrSerializedSceneFragmentDataGetInfoMSFT.Buffercreate(long address, int capacity)Create aXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance at the specified memory.static XrSerializedSceneFragmentDataGetInfoMSFTcreateSafe(long address)static XrSerializedSceneFragmentDataGetInfoMSFT.BuffercreateSafe(long address, int capacity)static XrSerializedSceneFragmentDataGetInfoMSFTmalloc()Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated withmemAlloc.static XrSerializedSceneFragmentDataGetInfoMSFT.Buffermalloc(int capacity)Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated withmemAlloc.static XrSerializedSceneFragmentDataGetInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSerializedSceneFragmentDataGetInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSerializedSceneFragmentDataGetInfoMSFTnext(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 XrUuidMSFTnsceneFragmentId(long struct)Unsafe version ofsceneFragmentId().static voidnsceneFragmentId(long struct, XrUuidMSFT value)Unsafe version ofsceneFragmentId.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrUuidMSFTsceneFragmentId()theXrUuidMSFTof the serialized scene fragment that was previously read fromGetSceneComponentsMSFTwithSCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT.XrSerializedSceneFragmentDataGetInfoMSFTsceneFragmentId(java.util.function.Consumer<XrUuidMSFT> consumer)Passes thesceneFragmentId()field to the specifiedConsumer.XrSerializedSceneFragmentDataGetInfoMSFTsceneFragmentId(XrUuidMSFT value)Copies the specifiedXrUuidMSFTto thesceneFragmentId()field.XrSerializedSceneFragmentDataGetInfoMSFTset(int type, long next, XrUuidMSFT sceneFragmentId)Initializes this struct with the specified values.XrSerializedSceneFragmentDataGetInfoMSFTset(XrSerializedSceneFragmentDataGetInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSerializedSceneFragmentDataGetInfoMSFTtype(int value)Sets the specified value to thetype()field.XrSerializedSceneFragmentDataGetInfoMSFTtype$Default()Sets theTYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSerializedSceneFragmentDataGetInfoMSFT
public XrSerializedSceneFragmentDataGetInfoMSFT(java.nio.ByteBuffer container)
Creates aXrSerializedSceneFragmentDataGetInfoMSFTinstance 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.
-
sceneFragmentId
public XrUuidMSFT sceneFragmentId()
theXrUuidMSFTof the serialized scene fragment that was previously read fromGetSceneComponentsMSFTwithSCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT.
-
type
public XrSerializedSceneFragmentDataGetInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSerializedSceneFragmentDataGetInfoMSFT type$Default()
Sets theTYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFTvalue to thetype()field.
-
next
public XrSerializedSceneFragmentDataGetInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
sceneFragmentId
public XrSerializedSceneFragmentDataGetInfoMSFT sceneFragmentId(XrUuidMSFT value)
Copies the specifiedXrUuidMSFTto thesceneFragmentId()field.
-
sceneFragmentId
public XrSerializedSceneFragmentDataGetInfoMSFT sceneFragmentId(java.util.function.Consumer<XrUuidMSFT> consumer)
Passes thesceneFragmentId()field to the specifiedConsumer.
-
set
public XrSerializedSceneFragmentDataGetInfoMSFT set(int type, long next, XrUuidMSFT sceneFragmentId)
Initializes this struct with the specified values.
-
set
public XrSerializedSceneFragmentDataGetInfoMSFT set(XrSerializedSceneFragmentDataGetInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSerializedSceneFragmentDataGetInfoMSFT malloc()
Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSerializedSceneFragmentDataGetInfoMSFT calloc()
Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSerializedSceneFragmentDataGetInfoMSFT create()
Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrSerializedSceneFragmentDataGetInfoMSFT create(long address)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSerializedSceneFragmentDataGetInfoMSFT createSafe(long address)
-
malloc
public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer malloc(int capacity)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer calloc(int capacity)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer create(int capacity)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer create(long address, int capacity)
Create aXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSerializedSceneFragmentDataGetInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSerializedSceneFragmentDataGetInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSerializedSceneFragmentDataGetInfoMSFT.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().
-
nsceneFragmentId
public static XrUuidMSFT nsceneFragmentId(long struct)
Unsafe version ofsceneFragmentId().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsceneFragmentId
public static void nsceneFragmentId(long struct, XrUuidMSFT value)Unsafe version ofsceneFragmentId.
-
-