Package org.lwjgl.vulkan
Class VkImageBlit
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageBlit
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageBlit extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an image blit operation.Description
For each element of the
pRegionsarray, a blit operation is performed for the specified source and destination regions.Valid Usage
- The
aspectMaskmember ofsrcSubresourceanddstSubresourcemust match - The
layerCountmember ofsrcSubresourceanddstSubresourcemust match
Valid Usage (Implicit)
srcSubresourcemust be a validVkImageSubresourceLayersstructuredstSubresourcemust be a validVkImageSubresourceLayersstructure
See Also
VkImageSubresourceLayers,VkOffset3D,CmdBlitImageLayout
struct VkImageBlit {VkImageSubresourceLayerssrcSubresource();VkOffset3DsrcOffsets()[2];VkImageSubresourceLayersdstSubresource();VkOffset3DdstOffsets()[2]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageBlit.BufferAn array ofVkImageBlitstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDSTOFFSETS
DSTSUBRESOURCEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSRCOFFSETS
SRCSUBRESOURCEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageBlit(java.nio.ByteBuffer container)Creates aVkImageBlitinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkImageBlitcalloc()Returns a newVkImageBlitinstance allocated withmemCalloc.static VkImageBlit.Buffercalloc(int capacity)Returns a newVkImageBlit.Bufferinstance allocated withmemCalloc.static VkImageBlit.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageBlitcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlitinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageBlitcallocStack()Deprecated.static VkImageBlit.BuffercallocStack(int capacity)Deprecated.static VkImageBlit.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageBlitcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageBlitcreate()Returns a newVkImageBlitinstance allocated withBufferUtils.static VkImageBlit.Buffercreate(int capacity)Returns a newVkImageBlit.Bufferinstance allocated withBufferUtils.static VkImageBlitcreate(long address)Returns a newVkImageBlitinstance for the specified memory address.static VkImageBlit.Buffercreate(long address, int capacity)Create aVkImageBlit.Bufferinstance at the specified memory.static VkImageBlitcreateSafe(long address)static VkImageBlit.BuffercreateSafe(long address, int capacity)VkOffset3D.BufferdstOffsets()a pointer to an array of twoVkOffset3Dstructures specifying the bounds of the destination region withindstSubresource.VkOffset3DdstOffsets(int index)a pointer to an array of twoVkOffset3Dstructures specifying the bounds of the destination region withindstSubresource.VkImageBlitdstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)VkImageBlitdstOffsets(int index, VkOffset3D value)Copies the specifiedVkOffset3Dat the specified index of thedstOffsets()field.VkImageBlitdstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)Passes thedstOffsets()field to the specifiedConsumer.VkImageBlitdstOffsets(VkOffset3D.Buffer value)Copies the specifiedVkOffset3D.Bufferto thedstOffsets()field.VkImageSubresourceLayersdstSubresource()the subresource to blit into.VkImageBlitdstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thedstSubresource()field to the specifiedConsumer.VkImageBlitdstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresource()field.static VkImageBlitmalloc()Returns a newVkImageBlitinstance allocated withmemAlloc.static VkImageBlit.Buffermalloc(int capacity)Returns a newVkImageBlit.Bufferinstance allocated withmemAlloc.static VkImageBlit.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit.Bufferinstance allocated on the specifiedMemoryStack.static VkImageBlitmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlitinstance allocated on the specifiedMemoryStack.static VkImageBlitmallocStack()Deprecated.static VkImageBlit.BuffermallocStack(int capacity)Deprecated.static VkImageBlit.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageBlitmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkOffset3D.BufferndstOffsets(long struct)Unsafe version ofdstOffsets().static VkOffset3DndstOffsets(long struct, int index)Unsafe version ofdstOffsets.static voidndstOffsets(long struct, int index, VkOffset3D value)Unsafe version ofdstOffsets.static voidndstOffsets(long struct, VkOffset3D.Buffer value)Unsafe version ofdstOffsets.static VkImageSubresourceLayersndstSubresource(long struct)Unsafe version ofdstSubresource().static voidndstSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofdstSubresource.static VkOffset3D.BuffernsrcOffsets(long struct)Unsafe version ofsrcOffsets().static VkOffset3DnsrcOffsets(long struct, int index)Unsafe version ofsrcOffsets.static voidnsrcOffsets(long struct, int index, VkOffset3D value)Unsafe version ofsrcOffsets.static voidnsrcOffsets(long struct, VkOffset3D.Buffer value)Unsafe version ofsrcOffsets.static VkImageSubresourceLayersnsrcSubresource(long struct)Unsafe version ofsrcSubresource().static voidnsrcSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofsrcSubresource.VkImageBlitset(VkImageBlit src)Copies the specified struct data to this struct.VkImageBlitset(VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets)Initializes this struct with the specified values.intsizeof()VkOffset3D.BuffersrcOffsets()a pointer to an array of twoVkOffset3Dstructures specifying the bounds of the source region withinsrcSubresource.VkOffset3DsrcOffsets(int index)a pointer to an array of twoVkOffset3Dstructures specifying the bounds of the source region withinsrcSubresource.VkImageBlitsrcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)VkImageBlitsrcOffsets(int index, VkOffset3D value)Copies the specifiedVkOffset3Dat the specified index of thesrcOffsets()field.VkImageBlitsrcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)Passes thesrcOffsets()field to the specifiedConsumer.VkImageBlitsrcOffsets(VkOffset3D.Buffer value)Copies the specifiedVkOffset3D.Bufferto thesrcOffsets()field.VkImageSubresourceLayerssrcSubresource()the subresource to blit from.VkImageBlitsrcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thesrcSubresource()field to the specifiedConsumer.VkImageBlitsrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresource()field.
-
-
-
Constructor Detail
-
VkImageBlit
public VkImageBlit(java.nio.ByteBuffer container)
Creates aVkImageBlitinstance 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
-
srcSubresource
public VkImageSubresourceLayers srcSubresource()
the subresource to blit from.
-
srcOffsets
public VkOffset3D.Buffer srcOffsets() public VkOffset3D srcOffsets(int index)
a pointer to an array of twoVkOffset3Dstructures specifying the bounds of the source region withinsrcSubresource.
-
dstSubresource
public VkImageSubresourceLayers dstSubresource()
the subresource to blit into.
-
dstOffsets
public VkOffset3D.Buffer dstOffsets() public VkOffset3D dstOffsets(int index)
a pointer to an array of twoVkOffset3Dstructures specifying the bounds of the destination region withindstSubresource.
-
srcSubresource
public VkImageBlit srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresource()field.
-
srcSubresource
public VkImageBlit srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thesrcSubresource()field to the specifiedConsumer.
-
srcOffsets
public VkImageBlit srcOffsets(VkOffset3D.Buffer value)
Copies the specifiedVkOffset3D.Bufferto thesrcOffsets()field.
-
srcOffsets
public VkImageBlit srcOffsets(int index, VkOffset3D value)
Copies the specifiedVkOffset3Dat the specified index of thesrcOffsets()field.
-
srcOffsets
public VkImageBlit srcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes thesrcOffsets()field to the specifiedConsumer.
-
srcOffsets
public VkImageBlit srcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
-
dstSubresource
public VkImageBlit dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresource()field.
-
dstSubresource
public VkImageBlit dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thedstSubresource()field to the specifiedConsumer.
-
dstOffsets
public VkImageBlit dstOffsets(VkOffset3D.Buffer value)
Copies the specifiedVkOffset3D.Bufferto thedstOffsets()field.
-
dstOffsets
public VkImageBlit dstOffsets(int index, VkOffset3D value)
Copies the specifiedVkOffset3Dat the specified index of thedstOffsets()field.
-
dstOffsets
public VkImageBlit dstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes thedstOffsets()field to the specifiedConsumer.
-
dstOffsets
public VkImageBlit dstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
-
set
public VkImageBlit set(VkImageSubresourceLayers srcSubresource, VkOffset3D.Buffer srcOffsets, VkImageSubresourceLayers dstSubresource, VkOffset3D.Buffer dstOffsets)
Initializes this struct with the specified values.
-
set
public VkImageBlit set(VkImageBlit src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageBlit malloc()
Returns a newVkImageBlitinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageBlit calloc()
Returns a newVkImageBlitinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageBlit create()
Returns a newVkImageBlitinstance allocated withBufferUtils.
-
create
public static VkImageBlit create(long address)
Returns a newVkImageBlitinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageBlit createSafe(long address)
-
malloc
public static VkImageBlit.Buffer malloc(int capacity)
Returns a newVkImageBlit.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageBlit.Buffer calloc(int capacity)
Returns a newVkImageBlit.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageBlit.Buffer create(int capacity)
Returns a newVkImageBlit.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageBlit.Buffer create(long address, int capacity)
Create aVkImageBlit.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageBlit.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImageBlit mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageBlit callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageBlit mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageBlit callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageBlit.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageBlit.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageBlit.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageBlit.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageBlit malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlitinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageBlit calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlitinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageBlit.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlit.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageBlit.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsrcSubresource
public static VkImageSubresourceLayers nsrcSubresource(long struct)
Unsafe version ofsrcSubresource().
-
nsrcOffsets
public static VkOffset3D.Buffer nsrcOffsets(long struct)
Unsafe version ofsrcOffsets().
-
nsrcOffsets
public static VkOffset3D nsrcOffsets(long struct, int index)
Unsafe version ofsrcOffsets.
-
ndstSubresource
public static VkImageSubresourceLayers ndstSubresource(long struct)
Unsafe version ofdstSubresource().
-
ndstOffsets
public static VkOffset3D.Buffer ndstOffsets(long struct)
Unsafe version ofdstOffsets().
-
ndstOffsets
public static VkOffset3D ndstOffsets(long struct, int index)
Unsafe version ofdstOffsets.
-
nsrcSubresource
public static void nsrcSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofsrcSubresource.
-
nsrcOffsets
public static void nsrcOffsets(long struct, VkOffset3D.Buffer value)Unsafe version ofsrcOffsets.
-
nsrcOffsets
public static void nsrcOffsets(long struct, int index, VkOffset3D value)Unsafe version ofsrcOffsets.
-
ndstSubresource
public static void ndstSubresource(long struct, VkImageSubresourceLayers value)Unsafe version ofdstSubresource.
-
ndstOffsets
public static void ndstOffsets(long struct, VkOffset3D.Buffer value)Unsafe version ofdstOffsets.
-
ndstOffsets
public static void ndstOffsets(long struct, int index, VkOffset3D value)Unsafe version ofdstOffsets.
-
-