Package org.lwjgl.openxr
Class XrNewSceneComputeInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrNewSceneComputeInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrNewSceneComputeInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to compute a new scene.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrNewSceneComputeInfoMSFT typemust beTYPE_NEW_SCENE_COMPUTE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrVisualMeshComputeLodInfoMSFTrequestedFeaturesmust be a pointer to an array ofrequestedFeatureCountvalidXrSceneComputeFeatureMSFTvaluesconsistencymust be a validXrSceneComputeConsistencyMSFTvalueboundsmust be a validXrSceneBoundsMSFTstructure- The
requestedFeatureCountparameter must be greater than 0
See Also
XrSceneBoundsMSFT,ComputeNewSceneMSFTLayout
struct XrNewSceneComputeInfoMSFT { XrStructureTypetype(); void const *next(); uint32_trequestedFeatureCount(); XrSceneComputeFeatureMSFT const *requestedFeatures(); XrSceneComputeConsistencyMSFTconsistency();XrSceneBoundsMSFTbounds(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrNewSceneComputeInfoMSFT.BufferAn array ofXrNewSceneComputeInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBOUNDS
CONSISTENCY
NEXT
REQUESTEDFEATURECOUNT
REQUESTEDFEATURESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrNewSceneComputeInfoMSFT(java.nio.ByteBuffer container)Creates aXrNewSceneComputeInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XrSceneBoundsMSFTbounds()anXrSceneBoundsMSFTrepresenting the culling volume.XrNewSceneComputeInfoMSFTbounds(java.util.function.Consumer<XrSceneBoundsMSFT> consumer)Passes thebounds()field to the specifiedConsumer.XrNewSceneComputeInfoMSFTbounds(XrSceneBoundsMSFT value)Copies the specifiedXrSceneBoundsMSFTto thebounds()field.static XrNewSceneComputeInfoMSFTcalloc()Returns a newXrNewSceneComputeInfoMSFTinstance allocated withmemCalloc.static XrNewSceneComputeInfoMSFT.Buffercalloc(int capacity)Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated withmemCalloc.static XrNewSceneComputeInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrNewSceneComputeInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrNewSceneComputeInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intconsistency()indicates the requestedXrSceneComputeConsistencyMSFT, trading off speed against the quality of the resulting scene.XrNewSceneComputeInfoMSFTconsistency(int value)Sets the specified value to theconsistency()field.static XrNewSceneComputeInfoMSFTcreate()Returns a newXrNewSceneComputeInfoMSFTinstance allocated withBufferUtils.static XrNewSceneComputeInfoMSFT.Buffercreate(int capacity)Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated withBufferUtils.static XrNewSceneComputeInfoMSFTcreate(long address)Returns a newXrNewSceneComputeInfoMSFTinstance for the specified memory address.static XrNewSceneComputeInfoMSFT.Buffercreate(long address, int capacity)Create aXrNewSceneComputeInfoMSFT.Bufferinstance at the specified memory.static XrNewSceneComputeInfoMSFTcreateSafe(long address)static XrNewSceneComputeInfoMSFT.BuffercreateSafe(long address, int capacity)static XrNewSceneComputeInfoMSFTmalloc()Returns a newXrNewSceneComputeInfoMSFTinstance allocated withmemAlloc.static XrNewSceneComputeInfoMSFT.Buffermalloc(int capacity)Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated withmemAlloc.static XrNewSceneComputeInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrNewSceneComputeInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrNewSceneComputeInfoMSFTinstance allocated on the specifiedMemoryStack.static XrSceneBoundsMSFTnbounds(long struct)Unsafe version ofbounds().static voidnbounds(long struct, XrSceneBoundsMSFT value)Unsafe version ofbounds.static intnconsistency(long struct)Unsafe version ofconsistency().static voidnconsistency(long struct, int value)Unsafe version ofconsistency.longnext()NULLor a pointer to the next structure in a structure chain.XrNewSceneComputeInfoMSFTnext(long value)Sets the specified value to thenext()field.XrNewSceneComputeInfoMSFTnext(XrVisualMeshComputeLodInfoMSFT value)Prepends the specifiedXrVisualMeshComputeLodInfoMSFTvalue to thenextchain.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnrequestedFeatureCount(long struct)Unsafe version ofrequestedFeatureCount().static voidnrequestedFeatureCount(long struct, int value)Sets the specified value to therequestedFeatureCountfield of the specifiedstruct.static java.nio.IntBuffernrequestedFeatures(long struct)Unsafe version ofrequestedFeatures.static voidnrequestedFeatures(long struct, java.nio.IntBuffer value)Unsafe version ofrequestedFeatures.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intrequestedFeatureCount()the number of features.java.nio.IntBufferrequestedFeatures()an array ofXrSceneComputeFeatureMSFT.XrNewSceneComputeInfoMSFTrequestedFeatures(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto therequestedFeatures()field.XrNewSceneComputeInfoMSFTset(int type, long next, java.nio.IntBuffer requestedFeatures, int consistency, XrSceneBoundsMSFT bounds)Initializes this struct with the specified values.XrNewSceneComputeInfoMSFTset(XrNewSceneComputeInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrNewSceneComputeInfoMSFTtype(int value)Sets the specified value to thetype()field.XrNewSceneComputeInfoMSFTtype$Default()Sets theTYPE_NEW_SCENE_COMPUTE_INFO_MSFTvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrNewSceneComputeInfoMSFT
public XrNewSceneComputeInfoMSFT(java.nio.ByteBuffer container)
Creates aXrNewSceneComputeInfoMSFTinstance 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.
-
requestedFeatureCount
public int requestedFeatureCount()
the number of features.
-
requestedFeatures
public java.nio.IntBuffer requestedFeatures()
an array ofXrSceneComputeFeatureMSFT.
-
consistency
public int consistency()
indicates the requestedXrSceneComputeConsistencyMSFT, trading off speed against the quality of the resulting scene.
-
bounds
public XrSceneBoundsMSFT bounds()
anXrSceneBoundsMSFTrepresenting the culling volume. Scene components entirely outside this volume should culled.
-
type
public XrNewSceneComputeInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrNewSceneComputeInfoMSFT type$Default()
Sets theTYPE_NEW_SCENE_COMPUTE_INFO_MSFTvalue to thetype()field.
-
next
public XrNewSceneComputeInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
next
public XrNewSceneComputeInfoMSFT next(XrVisualMeshComputeLodInfoMSFT value)
Prepends the specifiedXrVisualMeshComputeLodInfoMSFTvalue to thenextchain.
-
requestedFeatures
public XrNewSceneComputeInfoMSFT requestedFeatures(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto therequestedFeatures()field.
-
consistency
public XrNewSceneComputeInfoMSFT consistency(int value)
Sets the specified value to theconsistency()field.
-
bounds
public XrNewSceneComputeInfoMSFT bounds(XrSceneBoundsMSFT value)
Copies the specifiedXrSceneBoundsMSFTto thebounds()field.
-
bounds
public XrNewSceneComputeInfoMSFT bounds(java.util.function.Consumer<XrSceneBoundsMSFT> consumer)
Passes thebounds()field to the specifiedConsumer.
-
set
public XrNewSceneComputeInfoMSFT set(int type, long next, java.nio.IntBuffer requestedFeatures, int consistency, XrSceneBoundsMSFT bounds)
Initializes this struct with the specified values.
-
set
public XrNewSceneComputeInfoMSFT set(XrNewSceneComputeInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrNewSceneComputeInfoMSFT malloc()
Returns a newXrNewSceneComputeInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrNewSceneComputeInfoMSFT calloc()
Returns a newXrNewSceneComputeInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrNewSceneComputeInfoMSFT create()
Returns a newXrNewSceneComputeInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrNewSceneComputeInfoMSFT create(long address)
Returns a newXrNewSceneComputeInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrNewSceneComputeInfoMSFT createSafe(long address)
-
malloc
public static XrNewSceneComputeInfoMSFT.Buffer malloc(int capacity)
Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrNewSceneComputeInfoMSFT.Buffer calloc(int capacity)
Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrNewSceneComputeInfoMSFT.Buffer create(int capacity)
Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrNewSceneComputeInfoMSFT.Buffer create(long address, int capacity)
Create aXrNewSceneComputeInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrNewSceneComputeInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrNewSceneComputeInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrNewSceneComputeInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrNewSceneComputeInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrNewSceneComputeInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrNewSceneComputeInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrNewSceneComputeInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrNewSceneComputeInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrNewSceneComputeInfoMSFT.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().
-
nrequestedFeatureCount
public static int nrequestedFeatureCount(long struct)
Unsafe version ofrequestedFeatureCount().
-
nrequestedFeatures
public static java.nio.IntBuffer nrequestedFeatures(long struct)
Unsafe version ofrequestedFeatures.
-
nconsistency
public static int nconsistency(long struct)
Unsafe version ofconsistency().
-
nbounds
public static XrSceneBoundsMSFT nbounds(long struct)
Unsafe version ofbounds().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nrequestedFeatureCount
public static void nrequestedFeatureCount(long struct, int value)Sets the specified value to therequestedFeatureCountfield of the specifiedstruct.
-
nrequestedFeatures
public static void nrequestedFeatures(long struct, java.nio.IntBuffer value)Unsafe version ofrequestedFeatures.
-
nconsistency
public static void nconsistency(long struct, int value)Unsafe version ofconsistency.
-
nbounds
public static void nbounds(long struct, XrSceneBoundsMSFT value)Unsafe version ofbounds.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-