Package org.lwjgl.openxr
Class XrVisualMeshComputeLodInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrVisualMeshComputeLodInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrVisualMeshComputeLodInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceVisual mesh compute level of detail info.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrVisualMeshComputeLodInfoMSFT typemust beTYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainlodmust be a validXrMeshComputeLodMSFTvalue
See Also
XrNewSceneComputeInfoMSFT,ComputeNewSceneMSFTLayout
struct XrVisualMeshComputeLodInfoMSFT { XrStructureTypetype(); void const *next(); XrMeshComputeLodMSFTlod(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrVisualMeshComputeLodInfoMSFT.BufferAn array ofXrVisualMeshComputeLodInfoMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrVisualMeshComputeLodInfoMSFT(java.nio.ByteBuffer container)Creates aXrVisualMeshComputeLodInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrVisualMeshComputeLodInfoMSFTcalloc()Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated withmemCalloc.static XrVisualMeshComputeLodInfoMSFT.Buffercalloc(int capacity)Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated withmemCalloc.static XrVisualMeshComputeLodInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVisualMeshComputeLodInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVisualMeshComputeLodInfoMSFTcreate()Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated withBufferUtils.static XrVisualMeshComputeLodInfoMSFT.Buffercreate(int capacity)Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated withBufferUtils.static XrVisualMeshComputeLodInfoMSFTcreate(long address)Returns a newXrVisualMeshComputeLodInfoMSFTinstance for the specified memory address.static XrVisualMeshComputeLodInfoMSFT.Buffercreate(long address, int capacity)Create aXrVisualMeshComputeLodInfoMSFT.Bufferinstance at the specified memory.static XrVisualMeshComputeLodInfoMSFTcreateSafe(long address)static XrVisualMeshComputeLodInfoMSFT.BuffercreateSafe(long address, int capacity)intlod()the requested mesh level of detail specified byXrMeshComputeLodMSFT.XrVisualMeshComputeLodInfoMSFTlod(int value)Sets the specified value to thelod()field.static XrVisualMeshComputeLodInfoMSFTmalloc()Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated withmemAlloc.static XrVisualMeshComputeLodInfoMSFT.Buffermalloc(int capacity)Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated withmemAlloc.static XrVisualMeshComputeLodInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrVisualMeshComputeLodInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrVisualMeshComputeLodInfoMSFTnext(long value)Sets the specified value to thenext()field.static intnlod(long struct)Unsafe version oflod().static voidnlod(long struct, int value)Unsafe version oflod.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.XrVisualMeshComputeLodInfoMSFTset(int type, long next, int lod)Initializes this struct with the specified values.XrVisualMeshComputeLodInfoMSFTset(XrVisualMeshComputeLodInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrVisualMeshComputeLodInfoMSFTtype(int value)Sets the specified value to thetype()field.XrVisualMeshComputeLodInfoMSFTtype$Default()Sets theTYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrVisualMeshComputeLodInfoMSFT
public XrVisualMeshComputeLodInfoMSFT(java.nio.ByteBuffer container)
Creates aXrVisualMeshComputeLodInfoMSFTinstance 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.
-
lod
public int lod()
the requested mesh level of detail specified byXrMeshComputeLodMSFT.
-
type
public XrVisualMeshComputeLodInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrVisualMeshComputeLodInfoMSFT type$Default()
Sets theTYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFTvalue to thetype()field.
-
next
public XrVisualMeshComputeLodInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
lod
public XrVisualMeshComputeLodInfoMSFT lod(int value)
Sets the specified value to thelod()field.
-
set
public XrVisualMeshComputeLodInfoMSFT set(int type, long next, int lod)
Initializes this struct with the specified values.
-
set
public XrVisualMeshComputeLodInfoMSFT set(XrVisualMeshComputeLodInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrVisualMeshComputeLodInfoMSFT malloc()
Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrVisualMeshComputeLodInfoMSFT calloc()
Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrVisualMeshComputeLodInfoMSFT create()
Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrVisualMeshComputeLodInfoMSFT create(long address)
Returns a newXrVisualMeshComputeLodInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrVisualMeshComputeLodInfoMSFT createSafe(long address)
-
malloc
public static XrVisualMeshComputeLodInfoMSFT.Buffer malloc(int capacity)
Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrVisualMeshComputeLodInfoMSFT.Buffer calloc(int capacity)
Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrVisualMeshComputeLodInfoMSFT.Buffer create(int capacity)
Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrVisualMeshComputeLodInfoMSFT.Buffer create(long address, int capacity)
Create aXrVisualMeshComputeLodInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrVisualMeshComputeLodInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrVisualMeshComputeLodInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrVisualMeshComputeLodInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVisualMeshComputeLodInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrVisualMeshComputeLodInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVisualMeshComputeLodInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrVisualMeshComputeLodInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVisualMeshComputeLodInfoMSFT.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().
-
nlod
public static int nlod(long struct)
Unsafe version oflod().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nlod
public static void nlod(long struct, int value)Unsafe version oflod.
-
-