public class VkImageBlit
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
For each element of the pRegions array, a blit operation is performed the specified source and destination regions.
aspectMask member of srcSubresource and dstSubresource must matchlayerCount 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, respectivelyaspectMask member of srcSubresource must specify aspects present in the calling command’s srcImageaspectMask member of dstSubresource must specify aspects present in the calling command’s dstImagesrcOffset[0].x and srcOffset[1].x must both be greater than or equal to 0 and less than or equal to the source image subresource widthsrcOffset[0].y and srcOffset[1].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[0].y must be 0 and srcOffset[1].y must be 1.srcOffset[0].z and srcOffset[1].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[0].z must be 0 and srcOffset[1].z must be 1.dstOffset[0].x and dstOffset[1].x must both be greater than or equal to 0 and less than or equal to the destination image subresource widthdstOffset[0].y and dstOffset[1].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[0].y must be 0 and dstOffset[1].y must be 1.dstOffset[0].z and dstOffset[1].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[0].z must be 0 and dstOffset[1].z must be 1.srcSubresource must be a valid VkImageSubresourceLayers structuredstSubresource must be a valid VkImageSubresourceLayers structureVkImageSubresourceLayers, VkOffset3D, CmdBlitImage
srcSubresource – the subresource to blit from.srcOffsets[2] – a pointer to an array of two VkOffset3D structures specifying the bounds of the source region within srcSubresource.dstSubresource – the subresource to blit into.dstOffsets[2] – a pointer to an array of two VkOffset3D structures specifying the bounds of the destination region within dstSubresource.
struct VkImageBlit {
VkImageSubresourceLayers srcSubresource;
VkOffset3D srcOffsets[2];
VkImageSubresourceLayers dstSubresource;
VkOffset3D dstOffsets[2];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageBlit.Buffer
An array of
VkImageBlit structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DSTOFFSETS
The struct member offsets.
|
static int |
DSTSUBRESOURCE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCOFFSETS
The struct member offsets.
|
static int |
SRCSUBRESOURCE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageBlit(java.nio.ByteBuffer container)
Creates a
VkImageBlit instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageBlit |
calloc()
Returns a new
VkImageBlit instance allocated with memCalloc. |
static VkImageBlit.Buffer |
calloc(int capacity)
Returns a new
VkImageBlit.Buffer instance allocated with memCalloc. |
static VkImageBlit |
callocStack()
Returns a new
VkImageBlit instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageBlit.Buffer |
callocStack(int capacity)
Returns a new
VkImageBlit.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageBlit.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageBlit.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageBlit |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageBlit instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageBlit |
create()
Returns a new
VkImageBlit instance allocated with BufferUtils. |
static VkImageBlit.Buffer |
create(int capacity)
Returns a new
VkImageBlit.Buffer instance allocated with BufferUtils. |
static VkImageBlit |
create(long address)
Returns a new
VkImageBlit instance for the specified memory address. |
static VkImageBlit.Buffer |
create(long address,
int capacity)
Create a
VkImageBlit.Buffer instance at the specified memory. |
static VkImageBlit |
createSafe(long address)
|
static VkImageBlit.Buffer |
createSafe(long address,
int capacity)
|
VkOffset3D.Buffer |
dstOffsets()
Returns a
VkOffset3D.Buffer view of the dstOffsets field. |
VkImageBlit |
dstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes the
dstOffsets field to the specified Consumer. |
VkOffset3D |
dstOffsets(int index)
Returns a
VkOffset3D view of the struct at the specified index of the dstOffsets field. |
VkImageBlit |
dstOffsets(int index,
java.util.function.Consumer<VkOffset3D> consumer)
Passes the element at
index of the dstOffsets field to the specified Consumer. |
VkImageBlit |
dstOffsets(int index,
VkOffset3D value)
Copies the specified
VkOffset3D at the specified index of the dstOffsets field. |
VkImageBlit |
dstOffsets(VkOffset3D.Buffer value)
Copies the specified
VkOffset3D.Buffer to the dstOffsets field. |
VkImageSubresourceLayers |
dstSubresource()
Returns a
VkImageSubresourceLayers view of the dstSubresource field. |
VkImageBlit |
dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes the
dstSubresource field to the specified Consumer. |
VkImageBlit |
dstSubresource(VkImageSubresourceLayers value)
Copies the specified
VkImageSubresourceLayers to the dstSubresource field. |
static VkImageBlit |
malloc()
Returns a new
VkImageBlit instance allocated with memAlloc. |
static VkImageBlit.Buffer |
malloc(int capacity)
Returns a new
VkImageBlit.Buffer instance allocated with memAlloc. |
static VkImageBlit |
mallocStack()
Returns a new
VkImageBlit instance allocated on the thread-local MemoryStack. |
static VkImageBlit.Buffer |
mallocStack(int capacity)
Returns a new
VkImageBlit.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageBlit.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageBlit.Buffer instance allocated on the specified MemoryStack. |
static VkImageBlit |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageBlit instance allocated on the specified MemoryStack. |
static VkOffset3D.Buffer |
ndstOffsets(long struct)
Unsafe version of
dstOffsets(). |
static VkOffset3D |
ndstOffsets(long struct,
int index)
Unsafe version of
dstOffsets. |
static void |
ndstOffsets(long struct,
int index,
VkOffset3D value)
Unsafe version of
dstOffsets. |
static void |
ndstOffsets(long struct,
VkOffset3D.Buffer value)
Unsafe version of
dstOffsets. |
static VkImageSubresourceLayers |
ndstSubresource(long struct)
Unsafe version of
dstSubresource(). |
static void |
ndstSubresource(long struct,
VkImageSubresourceLayers value)
Unsafe version of
dstSubresource. |
static VkOffset3D.Buffer |
nsrcOffsets(long struct)
Unsafe version of
srcOffsets(). |
static VkOffset3D |
nsrcOffsets(long struct,
int index)
Unsafe version of
srcOffsets. |
static void |
nsrcOffsets(long struct,
int index,
VkOffset3D value)
Unsafe version of
srcOffsets. |
static void |
nsrcOffsets(long struct,
VkOffset3D.Buffer value)
Unsafe version of
srcOffsets. |
static VkImageSubresourceLayers |
nsrcSubresource(long struct)
Unsafe version of
srcSubresource(). |
static void |
nsrcSubresource(long struct,
VkImageSubresourceLayers value)
Unsafe version of
srcSubresource. |
VkImageBlit |
set(VkImageBlit src)
Copies the specified struct data to this struct.
|
VkImageBlit |
set(VkImageSubresourceLayers srcSubresource,
VkOffset3D.Buffer srcOffsets,
VkImageSubresourceLayers dstSubresource,
VkOffset3D.Buffer dstOffsets)
Initializes this struct with the specified values.
|
int |
sizeof() |
VkOffset3D.Buffer |
srcOffsets()
Returns a
VkOffset3D.Buffer view of the srcOffsets field. |
VkImageBlit |
srcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes the
srcOffsets field to the specified Consumer. |
VkOffset3D |
srcOffsets(int index)
Returns a
VkOffset3D view of the struct at the specified index of the srcOffsets field. |
VkImageBlit |
srcOffsets(int index,
java.util.function.Consumer<VkOffset3D> consumer)
Passes the element at
index of the srcOffsets field to the specified Consumer. |
VkImageBlit |
srcOffsets(int index,
VkOffset3D value)
Copies the specified
VkOffset3D at the specified index of the srcOffsets field. |
VkImageBlit |
srcOffsets(VkOffset3D.Buffer value)
Copies the specified
VkOffset3D.Buffer to the srcOffsets field. |
VkImageSubresourceLayers |
srcSubresource()
Returns a
VkImageSubresourceLayers view of the srcSubresource field. |
VkImageBlit |
srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes the
srcSubresource field to the specified Consumer. |
VkImageBlit |
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 SRCOFFSETS
public static final int DSTSUBRESOURCE
public static final int DSTOFFSETS
public VkImageBlit(java.nio.ByteBuffer container)
VkImageBlit 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.Buffer srcOffsets()
VkOffset3D.Buffer view of the srcOffsets field.public VkOffset3D srcOffsets(int index)
VkOffset3D view of the struct at the specified index of the srcOffsets field.public VkImageSubresourceLayers dstSubresource()
VkImageSubresourceLayers view of the dstSubresource field.public VkOffset3D.Buffer dstOffsets()
VkOffset3D.Buffer view of the dstOffsets field.public VkOffset3D dstOffsets(int index)
VkOffset3D view of the struct at the specified index of the dstOffsets field.public VkImageBlit srcSubresource(VkImageSubresourceLayers value)
VkImageSubresourceLayers to the srcSubresource field.public VkImageBlit srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
srcSubresource field to the specified Consumer.public VkImageBlit srcOffsets(VkOffset3D.Buffer value)
VkOffset3D.Buffer to the srcOffsets field.public VkImageBlit srcOffsets(int index, VkOffset3D value)
VkOffset3D at the specified index of the srcOffsets field.public VkImageBlit srcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
srcOffsets field to the specified Consumer.public VkImageBlit srcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
index of the srcOffsets field to the specified Consumer.public VkImageBlit dstSubresource(VkImageSubresourceLayers value)
VkImageSubresourceLayers to the dstSubresource field.public VkImageBlit dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
dstSubresource field to the specified Consumer.public VkImageBlit dstOffsets(VkOffset3D.Buffer value)
VkOffset3D.Buffer to the dstOffsets field.public VkImageBlit dstOffsets(int index, VkOffset3D value)
VkOffset3D at the specified index of the dstOffsets field.public VkImageBlit dstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
dstOffsets field to the specified Consumer.public VkImageBlit dstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
index of the dstOffsets field to the specified Consumer.public VkImageBlit set(VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets)
public VkImageBlit set(VkImageBlit src)
src - the source structpublic static VkImageBlit malloc()
VkImageBlit instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageBlit calloc()
VkImageBlit instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageBlit create()
VkImageBlit instance allocated with BufferUtils.public static VkImageBlit create(long address)
VkImageBlit instance for the specified memory address.@Nullable public static VkImageBlit createSafe(long address)
public static VkImageBlit.Buffer malloc(int capacity)
VkImageBlit.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageBlit.Buffer calloc(int capacity)
VkImageBlit.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageBlit.Buffer create(int capacity)
VkImageBlit.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageBlit.Buffer create(long address, int capacity)
VkImageBlit.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageBlit.Buffer createSafe(long address, int capacity)
public static VkImageBlit mallocStack()
VkImageBlit instance allocated on the thread-local MemoryStack.public static VkImageBlit callocStack()
VkImageBlit instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageBlit mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageBlit instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageBlit callocStack(org.lwjgl.system.MemoryStack stack)
VkImageBlit instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageBlit.Buffer mallocStack(int capacity)
VkImageBlit.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageBlit.Buffer callocStack(int capacity)
VkImageBlit.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageBlit.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageBlit.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageBlit.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageBlit.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.Buffer nsrcOffsets(long struct)
srcOffsets().public static VkOffset3D nsrcOffsets(long struct, int index)
srcOffsets.public static VkImageSubresourceLayers ndstSubresource(long struct)
dstSubresource().public static VkOffset3D.Buffer ndstOffsets(long struct)
dstOffsets().public static VkOffset3D ndstOffsets(long struct, int index)
dstOffsets.public static void nsrcSubresource(long struct,
VkImageSubresourceLayers value)
srcSubresource.public static void nsrcOffsets(long struct,
VkOffset3D.Buffer value)
srcOffsets.public static void nsrcOffsets(long struct,
int index,
VkOffset3D value)
srcOffsets.public static void ndstSubresource(long struct,
VkImageSubresourceLayers value)
dstSubresource.public static void ndstOffsets(long struct,
VkOffset3D.Buffer value)
dstOffsets.public static void ndstOffsets(long struct,
int index,
VkOffset3D value)
dstOffsets.Copyright LWJGL. All Rights Reserved. License terms.