Class XrTilePropertiesMETA
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct XrTilePropertiesMETA {
XrStructureType type;
void * next;
XrExtent3DiMETA tileDimensions;
XrExtent2Di apronDimensions;
XrOffset2Di origin;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrTilePropertiesMETA(ByteBuffer container) Creates aXrTilePropertiesMETAinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionapronDimensions(Consumer<XrExtent2Di> consumer) Passes theapronDimensionsfield to the specifiedConsumer.apronDimensions(XrExtent2Di value) Copies the specifiedXrExtent2Dito theapronDimensionsfield.static XrTilePropertiesMETAcalloc()Returns a newXrTilePropertiesMETAinstance allocated withmemCalloc.static XrTilePropertiesMETA.Buffercalloc(int capacity) Returns a newXrTilePropertiesMETA.Bufferinstance allocated withmemCalloc.static XrTilePropertiesMETA.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrTilePropertiesMETA.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrTilePropertiesMETAcalloc(MemoryStack stack) Returns a newXrTilePropertiesMETAinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrTilePropertiesMETAcreate()Returns a newXrTilePropertiesMETAinstance allocated withBufferUtils.static XrTilePropertiesMETA.Buffercreate(int capacity) Returns a newXrTilePropertiesMETA.Bufferinstance allocated withBufferUtils.static XrTilePropertiesMETAcreate(long address) Returns a newXrTilePropertiesMETAinstance for the specified memory address.static XrTilePropertiesMETA.Buffercreate(long address, int capacity) Create aXrTilePropertiesMETA.Bufferinstance at the specified memory.static @Nullable XrTilePropertiesMETAcreateSafe(long address) static @Nullable XrTilePropertiesMETA.BuffercreateSafe(long address, int capacity) static XrTilePropertiesMETAmalloc()Returns a newXrTilePropertiesMETAinstance allocated withmemAlloc.static XrTilePropertiesMETA.Buffermalloc(int capacity) Returns a newXrTilePropertiesMETA.Bufferinstance allocated withmemAlloc.static XrTilePropertiesMETA.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrTilePropertiesMETA.Bufferinstance allocated on the specifiedMemoryStack.static XrTilePropertiesMETAmalloc(MemoryStack stack) Returns a newXrTilePropertiesMETAinstance allocated on the specifiedMemoryStack.static XrExtent2DinapronDimensions(long struct) Unsafe version ofapronDimensions().static voidnapronDimensions(long struct, XrExtent2Di value) Unsafe version ofapronDimensions.longnext()next(long value) Sets the specified value to thenextfield.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static XrOffset2Dinorigin(long struct) Unsafe version oforigin().static voidnorigin(long struct, XrOffset2Di value) Unsafe version oforigin.static XrExtent3DiMETAntileDimensions(long struct) Unsafe version oftileDimensions().static voidntileDimensions(long struct, XrExtent3DiMETA value) Unsafe version oftileDimensions.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.origin()origin(Consumer<XrOffset2Di> consumer) Passes theoriginfield to the specifiedConsumer.origin(XrOffset2Di value) Copies the specifiedXrOffset2Dito theoriginfield.set(int type, long next, XrExtent3DiMETA tileDimensions, XrExtent2Di apronDimensions, XrOffset2Di origin) Initializes this struct with the specified values.set(XrTilePropertiesMETA src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).tileDimensions(Consumer<XrExtent3DiMETA> consumer) Passes thetileDimensionsfield to the specifiedConsumer.tileDimensions(XrExtent3DiMETA value) Copies the specifiedXrExtent3DiMETAto thetileDimensionsfield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_TILE_PROPERTIES_METAvalue to thetypefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
TILEDIMENSIONS
public static final int TILEDIMENSIONSThe struct member offsets. -
APRONDIMENSIONS
public static final int APRONDIMENSIONSThe struct member offsets. -
ORIGIN
public static final int ORIGINThe struct member offsets.
-
-
Constructor Details
-
XrTilePropertiesMETA
Creates aXrTilePropertiesMETAinstance 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<XrTilePropertiesMETA>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
tileDimensions
- Returns:
- a
XrExtent3DiMETAview of thetileDimensionsfield.
-
apronDimensions
- Returns:
- a
XrExtent2Diview of theapronDimensionsfield.
-
origin
- Returns:
- a
XrOffset2Diview of theoriginfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_TILE_PROPERTIES_METAvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
tileDimensions
Copies the specifiedXrExtent3DiMETAto thetileDimensionsfield. -
tileDimensions
Passes thetileDimensionsfield to the specifiedConsumer. -
apronDimensions
Copies the specifiedXrExtent2Dito theapronDimensionsfield. -
apronDimensions
Passes theapronDimensionsfield to the specifiedConsumer. -
origin
Copies the specifiedXrOffset2Dito theoriginfield. -
origin
Passes theoriginfield to the specifiedConsumer. -
set
public XrTilePropertiesMETA set(int type, long next, XrExtent3DiMETA tileDimensions, XrExtent2Di apronDimensions, XrOffset2Di origin) 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 newXrTilePropertiesMETAinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrTilePropertiesMETAinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrTilePropertiesMETAinstance allocated withBufferUtils. -
create
Returns a newXrTilePropertiesMETAinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrTilePropertiesMETA.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrTilePropertiesMETA.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrTilePropertiesMETA.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrTilePropertiesMETA.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrTilePropertiesMETAinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrTilePropertiesMETAinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrTilePropertiesMETA.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrTilePropertiesMETA.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(). -
ntileDimensions
Unsafe version oftileDimensions(). -
napronDimensions
Unsafe version ofapronDimensions(). -
norigin
Unsafe version oforigin(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ntileDimensions
Unsafe version oftileDimensions. -
napronDimensions
Unsafe version ofapronDimensions. -
norigin
Unsafe version oforigin.
-