Package org.lwjgl.openxr
Class XrSwapchainSubImage
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSwapchainSubImage>
org.lwjgl.openxr.XrSwapchainSubImage
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainSubImage
extends org.lwjgl.system.Struct<XrSwapchainSubImage>
implements org.lwjgl.system.NativeResource
Composition layer data.
Valid Usage (Implicit)
swapchainmust be a validXrSwapchainhandle
See Also
XrCompositionLayerCylinderKHR, XrCompositionLayerDepthInfoKHR, XrCompositionLayerEquirect2KHR, XrCompositionLayerEquirectKHR, XrCompositionLayerProjectionView, XrCompositionLayerQuad, XrCompositionLayerSpaceWarpInfoFB, XrFoveationApplyInfoHTC, XrFrameEndInfo, XrRect2Di
Layout
struct XrSwapchainSubImage {
XrSwapchain swapchain();
XrRect2Di imageRect();
uint32_t imageArrayIndex();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainSubImagecalloc(org.lwjgl.system.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) intthe image array index, with 0 meaning the first or only array element.imageArrayIndex(int value) Sets the specified value to theimageArrayIndex()field.anXrRect2Direpresenting the valid portion of the image to use, in pixels.Passes theimageRect()field to the specifiedConsumer.Copies the specifiedXrRect2Dito theimageRect()field.static XrSwapchainSubImagemalloc()Returns a newXrSwapchainSubImageinstance allocated withmemAlloc.static XrSwapchainSubImage.Buffermalloc(int capacity) Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemAlloc.static XrSwapchainSubImage.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainSubImagemalloc(org.lwjgl.system.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()longtheXrSwapchainto be displayed.swapchain(XrSwapchain value) Sets the specified value to theswapchain()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrSwapchainSubImage>
-
swapchain
public long swapchain()theXrSwapchainto be displayed. -
imageRect
anXrRect2Direpresenting the valid portion of the image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The coordinate origin depends on which graphics API is being used. See the graphics API extension details for more information on the coordinate origin definition. Note that the compositor may bleed in pixels from outside the bounds in some cases, for instance due to mipmapping. -
imageArrayIndex
public int imageArrayIndex()the image array index, with 0 meaning the first or only array element. -
swapchain
Sets the specified value to theswapchain()field. -
imageRect
Copies the specifiedXrRect2Dito theimageRect()field. -
imageRect
Passes theimageRect()field to the specifiedConsumer. -
imageArrayIndex
Sets the specified value to theimageArrayIndex()field. -
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
-