Package org.lwjgl.vulkan
Class VkImageCopy
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageCopy
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkImageCopy extends Struct
Khronos Reference Page
Vulkan SpecificationSpecifies the image regions to copy.
Valid Usage
srcSubresourcemust be a validVkImageSubresourceLayersstructuredstSubresourcemust be a validVkImageSubresourceLayersstructure- 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.xand (extent.width+srcOffset.x) must both be greater than or equal to 0 and less than or equal to the source image subresource widthsrcOffset.yand (extent.height+srcOffset.y) must both be greater than or equal to 0 and less than or equal to the source image subresource heightsrcOffset.zand (extent.depth+srcOffset.z) must both be greater than or equal to 0 and less than or equal to the source image subresource depthdstOffset.xand (extent.width+dstOffset.x) must both be greater than or equal to 0 and less than or equal to the destination image subresource widthdstOffset.yand (extent.height+dstOffset.y) must both be greater than or equal to 0 and less than or equal to the destination image subresource heightdstOffset.zand (extent.depth+dstOffset.z) must both be greater than or equal to 0 and less than or equal to the destination image subresource depth- If the calling command's
srcImageis a compressed format image: - If the calling command's
dstImageis a compressed format image: srcOffset,dstOffset, andextentmust respect the image transfer granularity requirements of the queue family that it will be submitted against, as described in Physical Device Enumeration
Member documentation
srcSubresource– aVkImageSubresourceLayersstructure specifying the image subresource of the image used for the source image datasrcOffset– selects the initial x, y, and z offsets in texels of the sub-regions of the source image datadstSubresource– anVkImageSubresourceLayersstructure specifying the image subresource of the image used for the destination image datadstOffset– selects the initial x, y, and z offsets in texels of the sub-regions of the destination image dataextent– the size in texels of the source image to copy in width, height and depth
Layout
struct VkImageCopy {VkImageSubresourceLayerssrcSubresource;VkOffset3DsrcOffset;VkImageSubresourceLayersdstSubresource;VkOffset3DdstOffset;VkExtent3Dextent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkImageCopy.BufferAn array ofVkImageCopystructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkImageCopy(java.nio.ByteBuffer container)Creates aVkImageCopyinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkImageCopycalloc()Returns a newVkImageCopyinstance allocated withmemCalloc.static VkImageCopy.Buffercalloc(int capacity)Returns a newVkImageCopy.Bufferinstance allocated withmemCalloc.static VkImageCopycallocStack()Returns a newVkImageCopyinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageCopy.BuffercallocStack(int capacity)Returns a newVkImageCopy.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageCopy.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCopycallocStack(MemoryStack stack)Returns a newVkImageCopyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCopycreate()Returns a newVkImageCopyinstance allocated withBufferUtils.static VkImageCopy.Buffercreate(int capacity)Returns a newVkImageCopy.Bufferinstance allocated withBufferUtils.static VkImageCopycreate(long address)static VkImageCopy.Buffercreate(long address, int capacity)Create aVkImageCopy.Bufferinstance at the specified memory.VkOffset3DdstOffset()Returns aVkOffset3Dview of thedstOffsetfield.VkImageCopydstOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thedstOffsetfield.VkImageSubresourceLayersdstSubresource()Returns aVkImageSubresourceLayersview of thedstSubresourcefield.VkImageCopydstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.VkExtent3Dextent()Returns aVkExtent3Dview of theextentfield.VkImageCopyextent(VkExtent3D value)Copies the specifiedVkExtent3Dto theextentfield.static VkImageCopymalloc()Returns a newVkImageCopyinstance allocated withmemAlloc.static VkImageCopy.Buffermalloc(int capacity)Returns a newVkImageCopy.Bufferinstance allocated withmemAlloc.static VkImageCopymallocStack()Returns a newVkImageCopyinstance allocated on the thread-localMemoryStack.static VkImageCopy.BuffermallocStack(int capacity)Returns a newVkImageCopy.Bufferinstance allocated on the thread-localMemoryStack.static VkImageCopy.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStack.static VkImageCopymallocStack(MemoryStack stack)Returns a newVkImageCopyinstance allocated on the specifiedMemoryStack.VkImageCopynset(long struct)Unsafe version ofset.VkImageCopyset(VkImageCopy src)Copies the specified struct data to this struct.VkImageCopyset(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)Initializes this struct with the specified values.intsizeof()Returns thesizeof(struct).VkOffset3DsrcOffset()Returns aVkOffset3Dview of thesrcOffsetfield.VkImageCopysrcOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thesrcOffsetfield.VkImageSubresourceLayerssrcSubresource()Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.VkImageCopysrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkImageCopy
public VkImageCopy(java.nio.ByteBuffer container)
Creates aVkImageCopyinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
srcSubresource
public VkImageSubresourceLayers srcSubresource()
Returns aVkImageSubresourceLayersview of thesrcSubresourcefield.
-
srcOffset
public VkOffset3D srcOffset()
Returns aVkOffset3Dview of thesrcOffsetfield.
-
dstSubresource
public VkImageSubresourceLayers dstSubresource()
Returns aVkImageSubresourceLayersview of thedstSubresourcefield.
-
dstOffset
public VkOffset3D dstOffset()
Returns aVkOffset3Dview of thedstOffsetfield.
-
extent
public VkExtent3D extent()
Returns aVkExtent3Dview of theextentfield.
-
srcSubresource
public VkImageCopy srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.
-
srcOffset
public VkImageCopy srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thesrcOffsetfield.
-
dstSubresource
public VkImageCopy dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.
-
dstOffset
public VkImageCopy dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thedstOffsetfield.
-
extent
public VkImageCopy extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theextentfield.
-
set
public VkImageCopy set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)
Initializes this struct with the specified values.
-
nset
public VkImageCopy nset(long struct)
Unsafe version ofset.
-
set
public VkImageCopy set(VkImageCopy src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageCopy malloc()
Returns a newVkImageCopyinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageCopy calloc()
Returns a newVkImageCopyinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageCopy create()
Returns a newVkImageCopyinstance allocated withBufferUtils.
-
create
public static VkImageCopy create(long address)
-
malloc
public static VkImageCopy.Buffer malloc(int capacity)
Returns a newVkImageCopy.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageCopy.Buffer calloc(int capacity)
Returns a newVkImageCopy.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageCopy.Buffer create(int capacity)
Returns a newVkImageCopy.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageCopy.Buffer create(long address, int capacity)
Create aVkImageCopy.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkImageCopy mallocStack()
Returns a newVkImageCopyinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageCopy callocStack()
Returns a newVkImageCopyinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageCopy mallocStack(MemoryStack stack)
Returns a newVkImageCopyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageCopy callocStack(MemoryStack stack)
Returns a newVkImageCopyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageCopy.Buffer mallocStack(int capacity)
Returns a newVkImageCopy.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageCopy.Buffer callocStack(int capacity)
Returns a newVkImageCopy.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageCopy.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageCopy.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-