Package org.lwjgl.openxr
Class XrSwapchainSubImage
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainSubImage
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainSubImage extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceComposition layer data.Valid Usage (Implicit)
swapchainmust be a validXrSwapchainhandle
See Also
XrCompositionLayerCylinderKHR,XrCompositionLayerDepthInfoKHR,XrCompositionLayerEquirect2KHR,XrCompositionLayerEquirectKHR,XrCompositionLayerProjectionView,XrCompositionLayerQuad,XrCompositionLayerSpaceWarpInfoFB,XrFrameEndInfo,XrRect2DiLayout
struct XrSwapchainSubImage { XrSwapchainswapchain();XrRect2DiimageRect(); uint32_timageArrayIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainSubImage.BufferAn array ofXrSwapchainSubImagestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intIMAGEARRAYINDEX
IMAGERECTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSWAPCHAINThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSwapchainSubImage(java.nio.ByteBuffer container)Creates aXrSwapchainSubImageinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 XrSwapchainSubImagecreateSafe(long address)static XrSwapchainSubImage.BuffercreateSafe(long address, int capacity)intimageArrayIndex()the image array index, with 0 meaning the first or only array element.XrSwapchainSubImageimageArrayIndex(int value)Sets the specified value to theimageArrayIndex()field.XrRect2DiimageRect()anXrRect2Direpresenting the valid portion of the image to use, in pixels.XrSwapchainSubImageimageRect(java.util.function.Consumer<XrRect2Di> consumer)Passes theimageRect()field to the specifiedConsumer.XrSwapchainSubImageimageRect(XrRect2Di value)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.XrSwapchainSubImageset(XrSwapchain swapchain, XrRect2Di imageRect, int imageArrayIndex)Initializes this struct with the specified values.XrSwapchainSubImageset(XrSwapchainSubImage src)Copies the specified struct data to this struct.intsizeof()longswapchain()theXrSwapchainto be displayed.XrSwapchainSubImageswapchain(XrSwapchain value)Sets the specified value to theswapchain()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrSwapchainSubImage
public XrSwapchainSubImage(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
swapchain
public long swapchain()
theXrSwapchainto be displayed.
-
imageRect
public XrRect2Di 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
public XrSwapchainSubImage swapchain(XrSwapchain value)
Sets the specified value to theswapchain()field.
-
imageRect
public XrSwapchainSubImage imageRect(XrRect2Di value)
Copies the specifiedXrRect2Dito theimageRect()field.
-
imageRect
public XrSwapchainSubImage imageRect(java.util.function.Consumer<XrRect2Di> consumer)
Passes theimageRect()field to the specifiedConsumer.
-
imageArrayIndex
public XrSwapchainSubImage imageArrayIndex(int value)
Sets the specified value to theimageArrayIndex()field.
-
set
public XrSwapchainSubImage set(XrSwapchain swapchain, XrRect2Di imageRect, int imageArrayIndex)
Initializes this struct with the specified values.
-
set
public XrSwapchainSubImage set(XrSwapchainSubImage src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainSubImage malloc()
Returns a newXrSwapchainSubImageinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainSubImage calloc()
Returns a newXrSwapchainSubImageinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainSubImage create()
Returns a newXrSwapchainSubImageinstance allocated withBufferUtils.
-
create
public static XrSwapchainSubImage create(long address)
Returns a newXrSwapchainSubImageinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainSubImage createSafe(long address)
-
malloc
public static XrSwapchainSubImage.Buffer malloc(int capacity)
Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainSubImage.Buffer calloc(int capacity)
Returns a newXrSwapchainSubImage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainSubImage.Buffer create(int capacity)
Returns a newXrSwapchainSubImage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainSubImage.Buffer create(long address, int capacity)
Create aXrSwapchainSubImage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainSubImage.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSwapchainSubImage malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainSubImageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainSubImage calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainSubImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainSubImage.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainSubImage.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainSubImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nswapchain
public static long nswapchain(long struct)
Unsafe version ofswapchain().
-
nimageRect
public static XrRect2Di nimageRect(long struct)
Unsafe version ofimageRect().
-
nimageArrayIndex
public static int nimageArrayIndex(long struct)
Unsafe version ofimageArrayIndex().
-
nswapchain
public static void nswapchain(long struct, XrSwapchain value)Unsafe version ofswapchain.
-
nimageRect
public static void nimageRect(long struct, XrRect2Di value)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
-
-