Class XrSystemHandTrackingMeshPropertiesMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemHandTrackingMeshPropertiesMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemHandTrackingMeshPropertiesMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSystem property for hand tracking mesh.Description
If a runtime returns
FALSEforsupportsHandTrackingMesh, the system does not support hand tracking mesh input, and therefore must returnERROR_FEATURE_UNSUPPORTEDfromCreateHandMeshSpaceMSFTandUpdateHandMeshMSFT. The application should avoid using hand mesh functionality whensupportsHandTrackingMeshisFALSE.If a runtime returns
TRUEforsupportsHandTrackingMesh, the system supports hand tracking mesh input. In this case, the runtime must return a positive number formaxHandMeshIndexCountandmaxHandMeshVertexCount. An application should usemaxHandMeshIndexCountandmaxHandMeshVertexCountto preallocate hand mesh buffers and reuse them in their render loop when callingUpdateHandMeshMSFTevery frame.Valid Usage (Implicit)
- The
XR_MSFT_hand_tracking_meshextension must be enabled prior to usingXrSystemHandTrackingMeshPropertiesMSFT typemust beTYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrSystemProperties,GetSystemPropertiesLayout
struct XrSystemHandTrackingMeshPropertiesMSFT { XrStructureTypetype(); void *next(); XrBool32supportsHandTrackingMesh(); uint32_tmaxHandMeshIndexCount(); uint32_tmaxHandMeshVertexCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemHandTrackingMeshPropertiesMSFT.BufferAn array ofXrSystemHandTrackingMeshPropertiesMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXHANDMESHINDEXCOUNT
MAXHANDMESHVERTEXCOUNT
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTSHANDTRACKINGMESH
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemHandTrackingMeshPropertiesMSFT(java.nio.ByteBuffer container)Creates aXrSystemHandTrackingMeshPropertiesMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemHandTrackingMeshPropertiesMSFTcalloc()Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated withmemCalloc.static XrSystemHandTrackingMeshPropertiesMSFT.Buffercalloc(int capacity)Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated withmemCalloc.static XrSystemHandTrackingMeshPropertiesMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemHandTrackingMeshPropertiesMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemHandTrackingMeshPropertiesMSFTcreate()Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated withBufferUtils.static XrSystemHandTrackingMeshPropertiesMSFT.Buffercreate(int capacity)Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated withBufferUtils.static XrSystemHandTrackingMeshPropertiesMSFTcreate(long address)Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance for the specified memory address.static XrSystemHandTrackingMeshPropertiesMSFT.Buffercreate(long address, int capacity)Create aXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance at the specified memory.static XrSystemHandTrackingMeshPropertiesMSFTcreateSafe(long address)static XrSystemHandTrackingMeshPropertiesMSFT.BuffercreateSafe(long address, int capacity)static XrSystemHandTrackingMeshPropertiesMSFTmalloc()Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated withmemAlloc.static XrSystemHandTrackingMeshPropertiesMSFT.Buffermalloc(int capacity)Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated withmemAlloc.static XrSystemHandTrackingMeshPropertiesMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemHandTrackingMeshPropertiesMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated on the specifiedMemoryStack.intmaxHandMeshIndexCount()auint32_treturns the maximum count of indices that will be returned from the hand tracker.XrSystemHandTrackingMeshPropertiesMSFTmaxHandMeshIndexCount(int value)Sets the specified value to themaxHandMeshIndexCount()field.intmaxHandMeshVertexCount()auint32_treturns the maximum count of vertices that will be returned from the hand tracker.XrSystemHandTrackingMeshPropertiesMSFTmaxHandMeshVertexCount(int value)Sets the specified value to themaxHandMeshVertexCount()field.longnext()NULLor a pointer to the next structure in a structure chain.XrSystemHandTrackingMeshPropertiesMSFTnext(long value)Sets the specified value to thenext()field.static intnmaxHandMeshIndexCount(long struct)Unsafe version ofmaxHandMeshIndexCount().static voidnmaxHandMeshIndexCount(long struct, int value)Unsafe version ofmaxHandMeshIndexCount.static intnmaxHandMeshVertexCount(long struct)Unsafe version ofmaxHandMeshVertexCount().static voidnmaxHandMeshVertexCount(long struct, int value)Unsafe version ofmaxHandMeshVertexCount.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnsupportsHandTrackingMesh(long struct)Unsafe version ofsupportsHandTrackingMesh().static voidnsupportsHandTrackingMesh(long struct, int value)Unsafe version ofsupportsHandTrackingMesh.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSystemHandTrackingMeshPropertiesMSFTset(int type, long next, boolean supportsHandTrackingMesh, int maxHandMeshIndexCount, int maxHandMeshVertexCount)Initializes this struct with the specified values.XrSystemHandTrackingMeshPropertiesMSFTset(XrSystemHandTrackingMeshPropertiesMSFT src)Copies the specified struct data to this struct.intsizeof()booleansupportsHandTrackingMesh()anXrBool32, indicating if current system is capable of hand tracking mesh input.XrSystemHandTrackingMeshPropertiesMSFTsupportsHandTrackingMesh(boolean value)Sets the specified value to thesupportsHandTrackingMesh()field.inttype()theXrStructureTypeof this structure.XrSystemHandTrackingMeshPropertiesMSFTtype(int value)Sets the specified value to thetype()field.XrSystemHandTrackingMeshPropertiesMSFTtype$Default()Sets theTYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSystemHandTrackingMeshPropertiesMSFT
public XrSystemHandTrackingMeshPropertiesMSFT(java.nio.ByteBuffer container)
Creates aXrSystemHandTrackingMeshPropertiesMSFTinstance 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.
-
supportsHandTrackingMesh
public boolean supportsHandTrackingMesh()
anXrBool32, indicating if current system is capable of hand tracking mesh input.
-
maxHandMeshIndexCount
public int maxHandMeshIndexCount()
auint32_treturns the maximum count of indices that will be returned from the hand tracker.
-
maxHandMeshVertexCount
public int maxHandMeshVertexCount()
auint32_treturns the maximum count of vertices that will be returned from the hand tracker.
-
type
public XrSystemHandTrackingMeshPropertiesMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSystemHandTrackingMeshPropertiesMSFT type$Default()
Sets theTYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFTvalue to thetype()field.
-
next
public XrSystemHandTrackingMeshPropertiesMSFT next(long value)
Sets the specified value to thenext()field.
-
supportsHandTrackingMesh
public XrSystemHandTrackingMeshPropertiesMSFT supportsHandTrackingMesh(boolean value)
Sets the specified value to thesupportsHandTrackingMesh()field.
-
maxHandMeshIndexCount
public XrSystemHandTrackingMeshPropertiesMSFT maxHandMeshIndexCount(int value)
Sets the specified value to themaxHandMeshIndexCount()field.
-
maxHandMeshVertexCount
public XrSystemHandTrackingMeshPropertiesMSFT maxHandMeshVertexCount(int value)
Sets the specified value to themaxHandMeshVertexCount()field.
-
set
public XrSystemHandTrackingMeshPropertiesMSFT set(int type, long next, boolean supportsHandTrackingMesh, int maxHandMeshIndexCount, int maxHandMeshVertexCount)
Initializes this struct with the specified values.
-
set
public XrSystemHandTrackingMeshPropertiesMSFT set(XrSystemHandTrackingMeshPropertiesMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemHandTrackingMeshPropertiesMSFT malloc()
Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemHandTrackingMeshPropertiesMSFT calloc()
Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemHandTrackingMeshPropertiesMSFT create()
Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated withBufferUtils.
-
create
public static XrSystemHandTrackingMeshPropertiesMSFT create(long address)
Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemHandTrackingMeshPropertiesMSFT createSafe(long address)
-
malloc
public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer malloc(int capacity)
Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer calloc(int capacity)
Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer create(int capacity)
Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer create(long address, int capacity)
Create aXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemHandTrackingMeshPropertiesMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemHandTrackingMeshPropertiesMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingMeshPropertiesMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingMeshPropertiesMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemHandTrackingMeshPropertiesMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemHandTrackingMeshPropertiesMSFT.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().
-
nsupportsHandTrackingMesh
public static int nsupportsHandTrackingMesh(long struct)
Unsafe version ofsupportsHandTrackingMesh().
-
nmaxHandMeshIndexCount
public static int nmaxHandMeshIndexCount(long struct)
Unsafe version ofmaxHandMeshIndexCount().
-
nmaxHandMeshVertexCount
public static int nmaxHandMeshVertexCount(long struct)
Unsafe version ofmaxHandMeshVertexCount().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsupportsHandTrackingMesh
public static void nsupportsHandTrackingMesh(long struct, int value)Unsafe version ofsupportsHandTrackingMesh.
-
nmaxHandMeshIndexCount
public static void nmaxHandMeshIndexCount(long struct, int value)Unsafe version ofmaxHandMeshIndexCount.
-
nmaxHandMeshVertexCount
public static void nmaxHandMeshVertexCount(long struct, int value)Unsafe version ofmaxHandMeshVertexCount.
-
-