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 the specified source and destination regions.Valid Usage
- The
aspectMaskmember ofsrcSubresourceanddstSubresourcemust match - The
layerCountmember ofsrcSubresourceanddstSubresourcemust match - If either of the calling command’s
srcImageordstImageparameters are ofVkImageTypeIMAGE_TYPE_3D, thebaseArrayLayerandlayerCountmembers of bothsrcSubresourceanddstSubresourcemust be 0 and 1, respectively - The
aspectMaskmember ofsrcSubresourcemust specify aspects present in the calling command’ssrcImage - The
aspectMaskmember ofdstSubresourcemust specify aspects present in the calling command’sdstImage srcOffset[0].xandsrcOffset[1].xmust both be greater than or equal to 0 and less than or equal to the source image subresource widthsrcOffset[0].yandsrcOffset[1].ymust both be greater than or equal to 0 and less than or equal to the source image subresource height- If the calling command’s
srcImageis of typeIMAGE_TYPE_1D, thensrcOffset[0].y must be 0 andsrcOffset[1].y must be 1. srcOffset[0].zandsrcOffset[1].zmust both be greater than or equal to 0 and less than or equal to the source image subresource depth- If the calling command’s
srcImageis of typeIMAGE_TYPE_1DorIMAGE_TYPE_2D, thensrcOffset[0].z must be 0 andsrcOffset[1].z must be 1. dstOffset[0].xanddstOffset[1].xmust both be greater than or equal to 0 and less than or equal to the destination image subresource widthdstOffset[0].yanddstOffset[1].ymust both be greater than or equal to 0 and less than or equal to the destination image subresource height- If the calling command’s
dstImageis of typeIMAGE_TYPE_1D, thendstOffset[0].y must be 0 anddstOffset[1].y must be 1. dstOffset[0].zanddstOffset[1].zmust both be greater than or equal to 0 and less than or equal to the destination image subresource depth- If the calling command’s
dstImageis of typeIMAGE_TYPE_1DorIMAGE_TYPE_2D, thendstOffset[0].z must be 0 anddstOffset[1].z must be 1.
Valid Usage (Implicit)
srcSubresourcemust be a validVkImageSubresourceLayersstructuredstSubresourcemust be a validVkImageSubresourceLayersstructure
See Also
VkImageSubresourceLayers,VkOffset3D,CmdBlitImageMember documentation
srcSubresource– the subresource to blit from.srcOffsets[2]– an array of twoVkOffset3Dstructures specifying the bounds of the source region withinsrcSubresource.dstSubresource– the subresource to blit into.dstOffsets[2]– an array of twoVkOffset3Dstructures specifying the bounds of the destination region withindstSubresource.
Layout
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 Modifier and Type Method Description static VkImageBlitcalloc()Returns a newVkImageBlitinstance allocated withmemCalloc.static VkImageBlit.Buffercalloc(int capacity)Returns a newVkImageBlit.Bufferinstance allocated withmemCalloc.static VkImageBlitcallocStack()Returns a newVkImageBlitinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageBlit.BuffercallocStack(int capacity)Returns a newVkImageBlit.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageBlit.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageBlitcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlitinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aVkOffset3D.Buffer view of thedstOffsetsfield.VkOffset3DdstOffsets(int index)Returns aVkOffset3Dview of the struct at the specified index of thedstOffsetsfield.VkImageBlitdstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)Passes the element atindexof thedstOffsetsfield to the specifiedConsumer.VkImageBlitdstOffsets(int index, VkOffset3D value)Copies the specifiedVkOffset3Dat the specified index of thedstOffsetsfield.VkImageBlitdstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)Passes thedstOffsetsfield to the specifiedConsumer.VkImageBlitdstOffsets(VkOffset3D.Buffer value)Copies the specifiedVkOffset3D.Bufferto thedstOffsetsfield.VkImageSubresourceLayersdstSubresource()Returns aVkImageSubresourceLayersview of thedstSubresourcefield.VkImageBlitdstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thedstSubresourcefield to the specifiedConsumer.VkImageBlitdstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.static VkImageBlitmalloc()Returns a newVkImageBlitinstance allocated withmemAlloc.static VkImageBlit.Buffermalloc(int capacity)Returns a newVkImageBlit.Bufferinstance allocated withmemAlloc.static VkImageBlitmallocStack()Returns a newVkImageBlitinstance allocated on the thread-localMemoryStack.static VkImageBlit.BuffermallocStack(int capacity)Returns a newVkImageBlit.Bufferinstance allocated on the thread-localMemoryStack.static VkImageBlit.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlit.Bufferinstance allocated on the specifiedMemoryStack.static VkImageBlitmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageBlitinstance allocated on the specifiedMemoryStack.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()Returns aVkOffset3D.Buffer view of thesrcOffsetsfield.VkOffset3DsrcOffsets(int index)Returns aVkOffset3Dview of the struct at the specified index of thesrcOffsetsfield.VkImageBlitsrcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)Passes the element atindexof thesrcOffsetsfield to the specifiedConsumer.VkImageBlitsrcOffsets(int index, VkOffset3D value)Copies the specifiedVkOffset3Dat the specified index of thesrcOffsetsfield.VkImageBlitsrcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)Passes thesrcOffsetsfield to the specifiedConsumer.VkImageBlitsrcOffsets(VkOffset3D.Buffer value)Copies the specifiedVkOffset3D.Bufferto thesrcOffsetsfield.VkImageSubresourceLayerssrcSubresource()Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.VkImageBlitsrcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thesrcSubresourcefield to the specifiedConsumer.VkImageBlitsrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.
-
-
-
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()
Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.
-
srcOffsets
public VkOffset3D.Buffer srcOffsets()
Returns aVkOffset3D.Buffer view of thesrcOffsetsfield.
-
srcOffsets
public VkOffset3D srcOffsets(int index)
Returns aVkOffset3Dview of the struct at the specified index of thesrcOffsetsfield.
-
dstSubresource
public VkImageSubresourceLayers dstSubresource()
Returns aVkImageSubresourceLayersview of thedstSubresourcefield.
-
dstOffsets
public VkOffset3D.Buffer dstOffsets()
Returns aVkOffset3D.Buffer view of thedstOffsetsfield.
-
dstOffsets
public VkOffset3D dstOffsets(int index)
Returns aVkOffset3Dview of the struct at the specified index of thedstOffsetsfield.
-
srcSubresource
public VkImageBlit srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.
-
srcSubresource
public VkImageBlit srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thesrcSubresourcefield to the specifiedConsumer.
-
srcOffsets
public VkImageBlit srcOffsets(VkOffset3D.Buffer value)
Copies the specifiedVkOffset3D.Bufferto thesrcOffsetsfield.
-
srcOffsets
public VkImageBlit srcOffsets(int index, VkOffset3D value)
Copies the specifiedVkOffset3Dat the specified index of thesrcOffsetsfield.
-
srcOffsets
public VkImageBlit srcOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes thesrcOffsetsfield to the specifiedConsumer.
-
srcOffsets
public VkImageBlit srcOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
Passes the element atindexof thesrcOffsetsfield to the specifiedConsumer.
-
dstSubresource
public VkImageBlit dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.
-
dstSubresource
public VkImageBlit dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thedstSubresourcefield to the specifiedConsumer.
-
dstOffsets
public VkImageBlit dstOffsets(VkOffset3D.Buffer value)
Copies the specifiedVkOffset3D.Bufferto thedstOffsetsfield.
-
dstOffsets
public VkImageBlit dstOffsets(int index, VkOffset3D value)
Copies the specifiedVkOffset3Dat the specified index of thedstOffsetsfield.
-
dstOffsets
public VkImageBlit dstOffsets(java.util.function.Consumer<VkOffset3D.Buffer> consumer)
Passes thedstOffsetsfield to the specifiedConsumer.
-
dstOffsets
public VkImageBlit dstOffsets(int index, java.util.function.Consumer<VkOffset3D> consumer)
Passes the element atindexof thedstOffsetsfield to the specifiedConsumer.
-
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
public static VkImageBlit mallocStack()
Returns a newVkImageBlitinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageBlit callocStack()
Returns a newVkImageBlitinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageBlit mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageBlitinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageBlit callocStack(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
-
mallocStack
public static VkImageBlit.Buffer mallocStack(int capacity)
Returns a newVkImageBlit.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageBlit.Buffer callocStack(int capacity)
Returns a newVkImageBlit.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageBlit.Buffer mallocStack(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
-
callocStack
public static VkImageBlit.Buffer callocStack(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.
-
-