Package org.lwjgl.openxr
Class XrSwapchainSubImage
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSwapchainSubImage {
XrSwapchain swapchain;
XrRect2Di imageRect;
uint32_t imageArrayIndex;
}-
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 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
ConstructorsConstructorDescriptionXrSwapchainSubImage(ByteBuffer container) Creates aXrSwapchainSubImageinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSwapchainSubImagecalloc()Returns a newXrSwapchainSubImageinstance allocated withmemCalloc.static XrSwapchainSubImage.Buffercalloc(int capacity) Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemCalloc.static XrSwapchainSubImage.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainSubImagecalloc(MemoryStack stack) Returns a newXrSwapchainSubImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainSubImagecreate()Returns a newXrSwapchainSubImageinstance allocated withBufferUtils.static XrSwapchainSubImage.Buffercreate(int capacity) Returns a newXrSwapchainSubImage.Bufferinstance allocated withBufferUtils.static XrSwapchainSubImagecreate(long address) Returns a newXrSwapchainSubImageinstance for the specified memory address.static XrSwapchainSubImage.Buffercreate(long address, int capacity) Create aXrSwapchainSubImage.Bufferinstance at the specified memory.static @Nullable XrSwapchainSubImagecreateSafe(long address) static @Nullable XrSwapchainSubImage.BuffercreateSafe(long address, int capacity) intimageArrayIndex(int value) Sets the specified value to theimageArrayIndexfield.Passes theimageRectfield to the specifiedConsumer.Copies the specifiedXrRect2Dito theimageRectfield.static XrSwapchainSubImagemalloc()Returns a newXrSwapchainSubImageinstance allocated withmemAlloc.static XrSwapchainSubImage.Buffermalloc(int capacity) Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemAlloc.static XrSwapchainSubImage.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainSubImagemalloc(MemoryStack stack) Returns a newXrSwapchainSubImageinstance allocated on the specifiedMemoryStack.static intnimageArrayIndex(long struct) Unsafe version ofimageArrayIndex().static voidnimageArrayIndex(long struct, int value) Unsafe version ofimageArrayIndex.static XrRect2DinimageRect(long struct) Unsafe version ofimageRect().static voidnimageRect(long struct, XrRect2Di value) Unsafe version ofimageRect.static longnswapchain(long struct) Unsafe version ofswapchain().static voidnswapchain(long struct, XrSwapchain value) Unsafe version ofswapchain.set(XrSwapchain swapchain, XrRect2Di imageRect, int imageArrayIndex) Initializes this struct with the specified values.set(XrSwapchainSubImage src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longswapchain(XrSwapchain value) Sets the specified value to theswapchainfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
SWAPCHAIN
public static final int SWAPCHAINThe struct member offsets. -
IMAGERECT
public static final int IMAGERECTThe struct member offsets. -
IMAGEARRAYINDEX
public static final int IMAGEARRAYINDEXThe struct member offsets.
-
-
Constructor Details
-
XrSwapchainSubImage
Creates aXrSwapchainSubImageinstance 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<XrSwapchainSubImage>
-
swapchain
public long swapchain()- Returns:
- the value of the
swapchainfield.
-
imageRect
- Returns:
- a
XrRect2Diview of theimageRectfield.
-
imageArrayIndex
public int imageArrayIndex()- Returns:
- the value of the
imageArrayIndexfield.
-
swapchain
Sets the specified value to theswapchainfield. -
imageRect
Copies the specifiedXrRect2Dito theimageRectfield. -
imageRect
Passes theimageRectfield to the specifiedConsumer. -
imageArrayIndex
Sets the specified value to theimageArrayIndexfield. -
set
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 newXrSwapchainSubImageinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainSubImageinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSwapchainSubImageinstance allocated withBufferUtils. -
create
Returns a newXrSwapchainSubImageinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSwapchainSubImage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSwapchainSubImage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSwapchainSubImageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainSubImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nswapchain
public static long nswapchain(long struct) Unsafe version ofswapchain(). -
nimageRect
Unsafe version ofimageRect(). -
nimageArrayIndex
public static int nimageArrayIndex(long struct) Unsafe version ofimageArrayIndex(). -
nswapchain
Unsafe version ofswapchain. -
nimageRect
Unsafe version ofimageRect. -
nimageArrayIndex
public static void nimageArrayIndex(long struct, int value) Unsafe version ofimageArrayIndex. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-