Package org.lwjgl.openxr
Class XrSceneComponentsMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSceneComponentsMSFT {
XrStructureType type;
void * next;
uint32_t componentCapacityInput;
uint32_t componentCountOutput;
XrSceneComponentMSFT * components;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneComponentsMSFT(ByteBuffer container) Creates aXrSceneComponentsMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneComponentsMSFTcalloc()Returns a newXrSceneComponentsMSFTinstance allocated withmemCalloc.static XrSceneComponentsMSFT.Buffercalloc(int capacity) Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemCalloc.static XrSceneComponentsMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneComponentsMSFTcalloc(MemoryStack stack) Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcomponentCapacityInput(int value) Sets the specified value to thecomponentCapacityInputfield.intcomponentCountOutput(int value) Sets the specified value to thecomponentCountOutputfield.@Nullable XrSceneComponentMSFT.Buffercomponents(@Nullable XrSceneComponentMSFT.Buffer value) Sets the address of the specifiedXrSceneComponentMSFT.Bufferto thecomponentsfield.static XrSceneComponentsMSFTcreate()Returns a newXrSceneComponentsMSFTinstance allocated withBufferUtils.static XrSceneComponentsMSFT.Buffercreate(int capacity) Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withBufferUtils.static XrSceneComponentsMSFTcreate(long address) Returns a newXrSceneComponentsMSFTinstance for the specified memory address.static XrSceneComponentsMSFT.Buffercreate(long address, int capacity) Create aXrSceneComponentsMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneComponentsMSFTcreateSafe(long address) static @Nullable XrSceneComponentsMSFT.BuffercreateSafe(long address, int capacity) static XrSceneComponentsMSFTmalloc()Returns a newXrSceneComponentsMSFTinstance allocated withmemAlloc.static XrSceneComponentsMSFT.Buffermalloc(int capacity) Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemAlloc.static XrSceneComponentsMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneComponentsMSFTmalloc(MemoryStack stack) Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStack.static intncomponentCapacityInput(long struct) Unsafe version ofcomponentCapacityInput().static voidncomponentCapacityInput(long struct, int value) Sets the specified value to thecomponentCapacityInputfield of the specifiedstruct.static intncomponentCountOutput(long struct) Unsafe version ofcomponentCountOutput().static voidncomponentCountOutput(long struct, int value) Unsafe version ofcomponentCountOutput.static @Nullable XrSceneComponentMSFT.Bufferncomponents(long struct) Unsafe version ofcomponents().static voidncomponents(long struct, @Nullable XrSceneComponentMSFT.Buffer value) Unsafe version ofcomponents.longnext()next(long value) Sets the specified value to thenextfield.next(XrSceneMarkerQRCodesMSFT value) Prepends the specifiedXrSceneMarkerQRCodesMSFTvalue to thenextchain.next(XrSceneMarkersMSFT value) Prepends the specifiedXrSceneMarkersMSFTvalue to thenextchain.next(XrSceneMeshesMSFT value) Prepends the specifiedXrSceneMeshesMSFTvalue to thenextchain.next(XrSceneObjectsMSFT value) Prepends the specifiedXrSceneObjectsMSFTvalue to thenextchain.next(XrScenePlanesMSFT value) Prepends the specifiedXrScenePlanesMSFTvalue to thenextchain.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.set(int type, long next, int componentCapacityInput, int componentCountOutput, @Nullable XrSceneComponentMSFT.Buffer components) Initializes this struct with the specified values.set(XrSceneComponentsMSFT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_SCENE_COMPONENTS_MSFTvalue to thetypefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
COMPONENTCAPACITYINPUT
public static final int COMPONENTCAPACITYINPUTThe struct member offsets. -
COMPONENTCOUNTOUTPUT
public static final int COMPONENTCOUNTOUTPUTThe struct member offsets. -
COMPONENTS
public static final int COMPONENTSThe struct member offsets.
-
-
Constructor Details
-
XrSceneComponentsMSFT
Creates aXrSceneComponentsMSFTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSceneComponentsMSFT>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
componentCapacityInput
public int componentCapacityInput()- Returns:
- the value of the
componentCapacityInputfield.
-
componentCountOutput
public int componentCountOutput()- Returns:
- the value of the
componentCountOutputfield.
-
components
- Returns:
- a
XrSceneComponentMSFT.Bufferview of the struct array pointed to by thecomponentsfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_SCENE_COMPONENTS_MSFTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
next
Prepends the specifiedXrSceneMarkerQRCodesMSFTvalue to thenextchain. -
next
Prepends the specifiedXrSceneMarkersMSFTvalue to thenextchain. -
next
Prepends the specifiedXrSceneMeshesMSFTvalue to thenextchain. -
next
Prepends the specifiedXrSceneObjectsMSFTvalue to thenextchain. -
next
Prepends the specifiedXrScenePlanesMSFTvalue to thenextchain. -
componentCapacityInput
Sets the specified value to thecomponentCapacityInputfield. -
componentCountOutput
Sets the specified value to thecomponentCountOutputfield. -
components
Sets the address of the specifiedXrSceneComponentMSFT.Bufferto thecomponentsfield. -
set
public XrSceneComponentsMSFT set(int type, long next, int componentCapacityInput, int componentCountOutput, @Nullable XrSceneComponentMSFT.Buffer components) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSceneComponentsMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSceneComponentsMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSceneComponentsMSFTinstance allocated withBufferUtils. -
create
Returns a newXrSceneComponentsMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSceneComponentsMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSceneComponentsMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSceneComponentsMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
ncomponentCapacityInput
public static int ncomponentCapacityInput(long struct) Unsafe version ofcomponentCapacityInput(). -
ncomponentCountOutput
public static int ncomponentCountOutput(long struct) Unsafe version ofcomponentCountOutput(). -
ncomponents
Unsafe version ofcomponents(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ncomponentCapacityInput
public static void ncomponentCapacityInput(long struct, int value) Sets the specified value to thecomponentCapacityInputfield of the specifiedstruct. -
ncomponentCountOutput
public static void ncomponentCountOutput(long struct, int value) Unsafe version ofcomponentCountOutput. -
ncomponents
Unsafe version ofcomponents.
-