Package org.lwjgl.openxr
Class XrSceneMeshBuffersGetInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneMeshBuffersGetInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneMeshBuffersGetInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to get the scene mesh buffer data.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneMeshBuffersGetInfoMSFT typemust beTYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrSceneMeshBuffersGetInfoMSFT { XrStructureTypetype(); void const *next(); uint64_tmeshBufferId(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneMeshBuffersGetInfoMSFT.BufferAn array ofXrSceneMeshBuffersGetInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMESHBUFFERID
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSceneMeshBuffersGetInfoMSFT(java.nio.ByteBuffer container)Creates aXrSceneMeshBuffersGetInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneMeshBuffersGetInfoMSFTcalloc()Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated withmemCalloc.static XrSceneMeshBuffersGetInfoMSFT.Buffercalloc(int capacity)Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated withmemCalloc.static XrSceneMeshBuffersGetInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshBuffersGetInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneMeshBuffersGetInfoMSFTcreate()Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated withBufferUtils.static XrSceneMeshBuffersGetInfoMSFT.Buffercreate(int capacity)Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated withBufferUtils.static XrSceneMeshBuffersGetInfoMSFTcreate(long address)Returns a newXrSceneMeshBuffersGetInfoMSFTinstance for the specified memory address.static XrSceneMeshBuffersGetInfoMSFT.Buffercreate(long address, int capacity)Create aXrSceneMeshBuffersGetInfoMSFT.Bufferinstance at the specified memory.static XrSceneMeshBuffersGetInfoMSFTcreateSafe(long address)static XrSceneMeshBuffersGetInfoMSFT.BuffercreateSafe(long address, int capacity)static XrSceneMeshBuffersGetInfoMSFTmalloc()Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated withmemAlloc.static XrSceneMeshBuffersGetInfoMSFT.Buffermalloc(int capacity)Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated withmemAlloc.static XrSceneMeshBuffersGetInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneMeshBuffersGetInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated on the specifiedMemoryStack.longmeshBufferId()theuint64_tidentifier that specifies the scene mesh buffer to read.XrSceneMeshBuffersGetInfoMSFTmeshBufferId(long value)Sets the specified value to themeshBufferId()field.longnext()NULLor a pointer to the next structure in a structure chain.XrSceneMeshBuffersGetInfoMSFTnext(long value)Sets the specified value to thenext()field.static longnmeshBufferId(long struct)Unsafe version ofmeshBufferId().static voidnmeshBufferId(long struct, long value)Unsafe version ofmeshBufferId.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.XrSceneMeshBuffersGetInfoMSFTset(int type, long next, long meshBufferId)Initializes this struct with the specified values.XrSceneMeshBuffersGetInfoMSFTset(XrSceneMeshBuffersGetInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSceneMeshBuffersGetInfoMSFTtype(int value)Sets the specified value to thetype()field.XrSceneMeshBuffersGetInfoMSFTtype$Default()Sets theTYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSceneMeshBuffersGetInfoMSFT
public XrSceneMeshBuffersGetInfoMSFT(java.nio.ByteBuffer container)
Creates aXrSceneMeshBuffersGetInfoMSFTinstance 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.
-
meshBufferId
public long meshBufferId()
theuint64_tidentifier that specifies the scene mesh buffer to read.
-
type
public XrSceneMeshBuffersGetInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSceneMeshBuffersGetInfoMSFT type$Default()
Sets theTYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFTvalue to thetype()field.
-
next
public XrSceneMeshBuffersGetInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
meshBufferId
public XrSceneMeshBuffersGetInfoMSFT meshBufferId(long value)
Sets the specified value to themeshBufferId()field.
-
set
public XrSceneMeshBuffersGetInfoMSFT set(int type, long next, long meshBufferId)
Initializes this struct with the specified values.
-
set
public XrSceneMeshBuffersGetInfoMSFT set(XrSceneMeshBuffersGetInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneMeshBuffersGetInfoMSFT malloc()
Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneMeshBuffersGetInfoMSFT calloc()
Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneMeshBuffersGetInfoMSFT create()
Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneMeshBuffersGetInfoMSFT create(long address)
Returns a newXrSceneMeshBuffersGetInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneMeshBuffersGetInfoMSFT createSafe(long address)
-
malloc
public static XrSceneMeshBuffersGetInfoMSFT.Buffer malloc(int capacity)
Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneMeshBuffersGetInfoMSFT.Buffer calloc(int capacity)
Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshBuffersGetInfoMSFT.Buffer create(int capacity)
Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneMeshBuffersGetInfoMSFT.Buffer create(long address, int capacity)
Create aXrSceneMeshBuffersGetInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneMeshBuffersGetInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneMeshBuffersGetInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneMeshBuffersGetInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersGetInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneMeshBuffersGetInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersGetInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneMeshBuffersGetInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneMeshBuffersGetInfoMSFT.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().
-
nmeshBufferId
public static long nmeshBufferId(long struct)
Unsafe version ofmeshBufferId().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nmeshBufferId
public static void nmeshBufferId(long struct, long value)Unsafe version ofmeshBufferId.
-
-