public class VkImageResolve
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
aspectMask member of srcSubresource and dstSubresource must only contain IMAGE_ASPECT_COLOR_BITlayerCount member of srcSubresource and dstSubresource must matchsrcImage or dstImage parameters are of VkImageType IMAGE_TYPE_3D, the baseArrayLayer and layerCount members of both srcSubresource and dstSubresource must be 0 and 1, respectivelysrcOffset.x and (extent.width srcOffset.x) must both be greater than or equal to 0 and less than or equal to the source image subresource widthsrcOffset.y and (extent.height srcOffset.y) must both be greater than or equal to 0 and less than or equal to the source image subresource heightsrcImage is of type IMAGE_TYPE_1D, then srcOffset.y must be 0 and extent.height must be 1.srcOffset.z and (extent.depth srcOffset.z) must both be greater than or equal to 0 and less than or equal to the source image subresource depthsrcImage is of type IMAGE_TYPE_1D or IMAGE_TYPE_2D, then srcOffset.z must be 0 and extent.depth must be 1.dstOffset.x and (extent.width dstOffset.x) must both be greater than or equal to 0 and less than or equal to the destination image subresource widthdstOffset.y and (extent.height dstOffset.y) must both be greater than or equal to 0 and less than or equal to the destination image subresource heightdstImage is of type IMAGE_TYPE_1D, then dstOffset.y must be 0 and extent.height must be 1.dstOffset.z and (extent.depth dstOffset.z) must both be greater than or equal to 0 and less than or equal to the destination image subresource depthdstImage is of type IMAGE_TYPE_1D or IMAGE_TYPE_2D, then dstOffset.z must be 0 and extent.depth must be 1.srcSubresource must be a valid VkImageSubresourceLayers structuredstSubresource must be a valid VkImageSubresourceLayers structureVkExtent3D, VkImageSubresourceLayers, VkOffset3D, CmdResolveImage
srcSubresource – srcSubresource and dstSubresource are VkImageSubresourceLayers structures specifying the image subresources of the images used for the source and destination image data, respectively. Resolve of depth/stencil images is not supported.srcOffset – srcOffset and dstOffset select the initial x, y, and z offsets in texels of the sub-regions of the source and destination image data.dstSubresource – see srcSubresourcedstOffset – see srcOffsetextent – the size in texels of the source image to resolve in width, height and depth.
struct VkImageResolve {
VkImageSubresourceLayers srcSubresource;
VkOffset3D srcOffset;
VkImageSubresourceLayers dstSubresource;
VkOffset3D dstOffset;
VkExtent3D extent;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageResolve.Buffer
An array of
VkImageResolve structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DSTOFFSET
The struct member offsets.
|
static int |
DSTSUBRESOURCE
The struct member offsets.
|
static int |
EXTENT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCOFFSET
The struct member offsets.
|
static int |
SRCSUBRESOURCE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageResolve(java.nio.ByteBuffer container)
Creates a
VkImageResolve instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageResolve |
calloc()
Returns a new
VkImageResolve instance allocated with memCalloc. |
static VkImageResolve.Buffer |
calloc(int capacity)
Returns a new
VkImageResolve.Buffer instance allocated with memCalloc. |
static VkImageResolve |
callocStack()
Returns a new
VkImageResolve instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageResolve.Buffer |
callocStack(int capacity)
Returns a new
VkImageResolve.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageResolve.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageResolve.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageResolve |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageResolve instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageResolve |
create()
Returns a new
VkImageResolve instance allocated with BufferUtils. |
static VkImageResolve.Buffer |
create(int capacity)
Returns a new
VkImageResolve.Buffer instance allocated with BufferUtils. |
static VkImageResolve |
create(long address)
Returns a new
VkImageResolve instance for the specified memory address. |
static VkImageResolve.Buffer |
create(long address,
int capacity)
Create a
VkImageResolve.Buffer instance at the specified memory. |
static VkImageResolve |
createSafe(long address)
|
static VkImageResolve.Buffer |
createSafe(long address,
int capacity)
|
VkOffset3D |
dstOffset()
Returns a
VkOffset3D view of the dstOffset field. |
VkImageResolve |
dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes the
dstOffset field to the specified Consumer. |
VkImageResolve |
dstOffset(VkOffset3D value)
Copies the specified
VkOffset3D to the dstOffset field. |
VkImageSubresourceLayers |
dstSubresource()
Returns a
VkImageSubresourceLayers view of the dstSubresource field. |
VkImageResolve |
dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes the
dstSubresource field to the specified Consumer. |
VkImageResolve |
dstSubresource(VkImageSubresourceLayers value)
Copies the specified
VkImageSubresourceLayers to the dstSubresource field. |
VkExtent3D |
extent()
Returns a
VkExtent3D view of the extent field. |
VkImageResolve |
extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes the
extent field to the specified Consumer. |
VkImageResolve |
extent(VkExtent3D value)
Copies the specified
VkExtent3D to the extent field. |
static VkImageResolve |
malloc()
Returns a new
VkImageResolve instance allocated with memAlloc. |
static VkImageResolve.Buffer |
malloc(int capacity)
Returns a new
VkImageResolve.Buffer instance allocated with memAlloc. |
static VkImageResolve |
mallocStack()
Returns a new
VkImageResolve instance allocated on the thread-local MemoryStack. |
static VkImageResolve.Buffer |
mallocStack(int capacity)
Returns a new
VkImageResolve.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageResolve.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageResolve.Buffer instance allocated on the specified MemoryStack. |
static VkImageResolve |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageResolve instance allocated on the specified MemoryStack. |
static VkOffset3D |
ndstOffset(long struct)
Unsafe version of
dstOffset(). |
static void |
ndstOffset(long struct,
VkOffset3D value)
Unsafe version of
dstOffset. |
static VkImageSubresourceLayers |
ndstSubresource(long struct)
Unsafe version of
dstSubresource(). |
static void |
ndstSubresource(long struct,
VkImageSubresourceLayers value)
Unsafe version of
dstSubresource. |
static VkExtent3D |
nextent(long struct)
Unsafe version of
extent(). |
static void |
nextent(long struct,
VkExtent3D value)
Unsafe version of
extent. |
static VkOffset3D |
nsrcOffset(long struct)
Unsafe version of
srcOffset(). |
static void |
nsrcOffset(long struct,
VkOffset3D value)
Unsafe version of
srcOffset. |
static VkImageSubresourceLayers |
nsrcSubresource(long struct)
Unsafe version of
srcSubresource(). |
static void |
nsrcSubresource(long struct,
VkImageSubresourceLayers value)
Unsafe version of
srcSubresource. |
VkImageResolve |
set(VkImageResolve src)
Copies the specified struct data to this struct.
|
VkImageResolve |
set(VkImageSubresourceLayers srcSubresource,
VkOffset3D srcOffset,
VkImageSubresourceLayers dstSubresource,
VkOffset3D dstOffset,
VkExtent3D extent)
Initializes this struct with the specified values.
|
int |
sizeof() |
VkOffset3D |
srcOffset()
Returns a
VkOffset3D view of the srcOffset field. |
VkImageResolve |
srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes the
srcOffset field to the specified Consumer. |
VkImageResolve |
srcOffset(VkOffset3D value)
Copies the specified
VkOffset3D to the srcOffset field. |
VkImageSubresourceLayers |
srcSubresource()
Returns a
VkImageSubresourceLayers view of the srcSubresource field. |
VkImageResolve |
srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes the
srcSubresource field to the specified Consumer. |
VkImageResolve |
srcSubresource(VkImageSubresourceLayers value)
Copies the specified
VkImageSubresourceLayers to the srcSubresource field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SRCSUBRESOURCE
public static final int SRCOFFSET
public static final int DSTSUBRESOURCE
public static final int DSTOFFSET
public static final int EXTENT
public VkImageResolve(java.nio.ByteBuffer container)
VkImageResolve instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic VkImageSubresourceLayers srcSubresource()
VkImageSubresourceLayers view of the srcSubresource field.public VkOffset3D srcOffset()
VkOffset3D view of the srcOffset field.public VkImageSubresourceLayers dstSubresource()
VkImageSubresourceLayers view of the dstSubresource field.public VkOffset3D dstOffset()
VkOffset3D view of the dstOffset field.public VkExtent3D extent()
VkExtent3D view of the extent field.public VkImageResolve srcSubresource(VkImageSubresourceLayers value)
VkImageSubresourceLayers to the srcSubresource field.public VkImageResolve srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
srcSubresource field to the specified Consumer.public VkImageResolve srcOffset(VkOffset3D value)
VkOffset3D to the srcOffset field.public VkImageResolve srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
srcOffset field to the specified Consumer.public VkImageResolve dstSubresource(VkImageSubresourceLayers value)
VkImageSubresourceLayers to the dstSubresource field.public VkImageResolve dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
dstSubresource field to the specified Consumer.public VkImageResolve dstOffset(VkOffset3D value)
VkOffset3D to the dstOffset field.public VkImageResolve dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
dstOffset field to the specified Consumer.public VkImageResolve extent(VkExtent3D value)
VkExtent3D to the extent field.public VkImageResolve extent(java.util.function.Consumer<VkExtent3D> consumer)
extent field to the specified Consumer.public VkImageResolve set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)
public VkImageResolve set(VkImageResolve src)
src - the source structpublic static VkImageResolve malloc()
VkImageResolve instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageResolve calloc()
VkImageResolve instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageResolve create()
VkImageResolve instance allocated with BufferUtils.public static VkImageResolve create(long address)
VkImageResolve instance for the specified memory address.@Nullable public static VkImageResolve createSafe(long address)
public static VkImageResolve.Buffer malloc(int capacity)
VkImageResolve.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageResolve.Buffer calloc(int capacity)
VkImageResolve.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageResolve.Buffer create(int capacity)
VkImageResolve.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageResolve.Buffer create(long address, int capacity)
VkImageResolve.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageResolve.Buffer createSafe(long address, int capacity)
public static VkImageResolve mallocStack()
VkImageResolve instance allocated on the thread-local MemoryStack.public static VkImageResolve callocStack()
VkImageResolve instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageResolve mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageResolve instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageResolve callocStack(org.lwjgl.system.MemoryStack stack)
VkImageResolve instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageResolve.Buffer mallocStack(int capacity)
VkImageResolve.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageResolve.Buffer callocStack(int capacity)
VkImageResolve.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageResolve.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageResolve.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageResolve.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageResolve.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageSubresourceLayers nsrcSubresource(long struct)
srcSubresource().public static VkOffset3D nsrcOffset(long struct)
srcOffset().public static VkImageSubresourceLayers ndstSubresource(long struct)
dstSubresource().public static VkOffset3D ndstOffset(long struct)
dstOffset().public static VkExtent3D nextent(long struct)
extent().public static void nsrcSubresource(long struct,
VkImageSubresourceLayers value)
srcSubresource.public static void nsrcOffset(long struct,
VkOffset3D value)
srcOffset.public static void ndstSubresource(long struct,
VkImageSubresourceLayers value)
dstSubresource.public static void ndstOffset(long struct,
VkOffset3D value)
dstOffset.public static void nextent(long struct,
VkExtent3D value)
extent.Copyright LWJGL. All Rights Reserved. License terms.