Package org.lwjgl.openxr
Class XrScenePlaneAlignmentFilterInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrScenePlaneAlignmentFilterInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrScenePlaneAlignmentFilterInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourcePlane alignment filter.Description
The runtime must return only scene components that match one of the
XrScenePlaneAlignmentTypeMSFTvalues passed inalignments.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrScenePlaneAlignmentFilterInfoMSFT typemust beTYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain- If
alignmentCountis not 0,alignmentsmust be a pointer to an array ofalignmentCountvalidXrScenePlaneAlignmentTypeMSFTvalues
See Also
Layout
struct XrScenePlaneAlignmentFilterInfoMSFT { XrStructureTypetype(); void const *next(); uint32_talignmentCount(); XrScenePlaneAlignmentTypeMSFT const *alignments(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrScenePlaneAlignmentFilterInfoMSFT.BufferAn array ofXrScenePlaneAlignmentFilterInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNMENTCOUNT
ALIGNMENTSThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrScenePlaneAlignmentFilterInfoMSFT(java.nio.ByteBuffer container)Creates aXrScenePlaneAlignmentFilterInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intalignmentCount()auint32_tdescribing the count of elements in thealignmentsarray.XrScenePlaneAlignmentFilterInfoMSFTalignmentCount(int value)Sets the specified value to thealignmentCount()field.java.nio.IntBufferalignments()an array ofXrScenePlaneAlignmentTypeMSFTto filter by.XrScenePlaneAlignmentFilterInfoMSFTalignments(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thealignments()field.static XrScenePlaneAlignmentFilterInfoMSFTcalloc()Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated withmemCalloc.static XrScenePlaneAlignmentFilterInfoMSFT.Buffercalloc(int capacity)Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated withmemCalloc.static XrScenePlaneAlignmentFilterInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrScenePlaneAlignmentFilterInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrScenePlaneAlignmentFilterInfoMSFTcreate()Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated withBufferUtils.static XrScenePlaneAlignmentFilterInfoMSFT.Buffercreate(int capacity)Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated withBufferUtils.static XrScenePlaneAlignmentFilterInfoMSFTcreate(long address)Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance for the specified memory address.static XrScenePlaneAlignmentFilterInfoMSFT.Buffercreate(long address, int capacity)Create aXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance at the specified memory.static XrScenePlaneAlignmentFilterInfoMSFTcreateSafe(long address)static XrScenePlaneAlignmentFilterInfoMSFT.BuffercreateSafe(long address, int capacity)static XrScenePlaneAlignmentFilterInfoMSFTmalloc()Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated withmemAlloc.static XrScenePlaneAlignmentFilterInfoMSFT.Buffermalloc(int capacity)Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated withmemAlloc.static XrScenePlaneAlignmentFilterInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrScenePlaneAlignmentFilterInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated on the specifiedMemoryStack.static intnalignmentCount(long struct)Unsafe version ofalignmentCount().static voidnalignmentCount(long struct, int value)Sets the specified value to thealignmentCountfield of the specifiedstruct.static java.nio.IntBuffernalignments(long struct)Unsafe version ofalignments.static voidnalignments(long struct, java.nio.IntBuffer value)Unsafe version ofalignments.longnext()NULLor a pointer to the next structure in a structure chain.XrScenePlaneAlignmentFilterInfoMSFTnext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrScenePlaneAlignmentFilterInfoMSFTset(int type, long next, int alignmentCount, java.nio.IntBuffer alignments)Initializes this struct with the specified values.XrScenePlaneAlignmentFilterInfoMSFTset(XrScenePlaneAlignmentFilterInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrScenePlaneAlignmentFilterInfoMSFTtype(int value)Sets the specified value to thetype()field.XrScenePlaneAlignmentFilterInfoMSFTtype$Default()Sets theTYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrScenePlaneAlignmentFilterInfoMSFT
public XrScenePlaneAlignmentFilterInfoMSFT(java.nio.ByteBuffer container)
Creates aXrScenePlaneAlignmentFilterInfoMSFTinstance 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.
-
alignmentCount
public int alignmentCount()
auint32_tdescribing the count of elements in thealignmentsarray.
-
alignments
@Nullable public java.nio.IntBuffer alignments()
an array ofXrScenePlaneAlignmentTypeMSFTto filter by.
-
type
public XrScenePlaneAlignmentFilterInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrScenePlaneAlignmentFilterInfoMSFT type$Default()
Sets theTYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFTvalue to thetype()field.
-
next
public XrScenePlaneAlignmentFilterInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
alignmentCount
public XrScenePlaneAlignmentFilterInfoMSFT alignmentCount(int value)
Sets the specified value to thealignmentCount()field.
-
alignments
public XrScenePlaneAlignmentFilterInfoMSFT alignments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thealignments()field.
-
set
public XrScenePlaneAlignmentFilterInfoMSFT set(int type, long next, int alignmentCount, @Nullable java.nio.IntBuffer alignments)
Initializes this struct with the specified values.
-
set
public XrScenePlaneAlignmentFilterInfoMSFT set(XrScenePlaneAlignmentFilterInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrScenePlaneAlignmentFilterInfoMSFT malloc()
Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrScenePlaneAlignmentFilterInfoMSFT calloc()
Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrScenePlaneAlignmentFilterInfoMSFT create()
Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrScenePlaneAlignmentFilterInfoMSFT create(long address)
Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrScenePlaneAlignmentFilterInfoMSFT createSafe(long address)
-
malloc
public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer malloc(int capacity)
Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer calloc(int capacity)
Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer create(int capacity)
Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer create(long address, int capacity)
Create aXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrScenePlaneAlignmentFilterInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrScenePlaneAlignmentFilterInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlaneAlignmentFilterInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlaneAlignmentFilterInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrScenePlaneAlignmentFilterInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrScenePlaneAlignmentFilterInfoMSFT.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().
-
nalignmentCount
public static int nalignmentCount(long struct)
Unsafe version ofalignmentCount().
-
nalignments
@Nullable public static java.nio.IntBuffer nalignments(long struct)
Unsafe version ofalignments.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nalignmentCount
public static void nalignmentCount(long struct, int value)Sets the specified value to thealignmentCountfield of the specifiedstruct.
-
nalignments
public static void nalignments(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofalignments.
-
-