pRegions does not contain VkCopyCommandTransformInfoQCOM in its pNext chain, it must be a region that is contained within the specified imageSubresource of dstImagepRegions contains VkCopyCommandTransformInfoQCOM in its pNext chain, the rotated destination region as described in Buffer and Image Addressing with Rotation must be contained within dstImagepRegions contains VkCopyCommandTransformInfoQCOM in its pNext chain, then dstImage must have a 1x1x1 texel block extentpRegions contains VkCopyCommandTransformInfoQCOM in its pNext chain, then dstImage must be of type IMAGE_TYPE_2DpRegions contains VkCopyCommandTransformInfoQCOM in its pNext chain, then dstImage must not have a multi-planar formatsrcBuffer must be large enough to contain all buffer locations that are accessed according to Buffer and Image Addressing, for each element of pRegionspRegions, must not overlap in memorysrcBuffer must have been created with BUFFER_USAGE_TRANSFER_SRC_BIT usage flagdstImage must contain FORMAT_FEATURE_TRANSFER_DST_BITsrcBuffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory objectdstImage must have been created with IMAGE_USAGE_TRANSFER_DST_BIT usage flagdstImageLayout must specify the layout of the image subresources of dstImage specified in pRegions at the time this command is executed on a VkDevicedstImageLayout must be IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, IMAGE_LAYOUT_GENERAL, or IMAGE_LAYOUT_SHARED_PRESENT_KHRVK_EXT_depth_range_unrestricted is not enabled, for each element of pRegions whose imageSubresource contains a depth aspect, the data in srcBuffer must be in the range [0,1]dstImage is non-sparse then the image or the specified disjoint plane must be bound completely and contiguously to a single VkDeviceMemory objectimageSubresource.mipLevel member of each element of pRegions must be less than the mipLevels specified in VkImageCreateInfo when dstImage was createdimageSubresource.baseArrayLayer + imageSubresource.layerCount of each element of pRegions , if imageSubresource.layerCount is not REMAINING_ARRAY_LAYERS and maintenance5 is not enabled, must be less than or equal to the arrayLayers specified in VkImageCreateInfo when dstImage was createddstImage must not have been created with flags containing IMAGE_CREATE_SUBSAMPLED_BIT_EXTdstImage must have a sample count equal to SAMPLE_COUNT_1_BITdstImage is of type IMAGE_TYPE_1D, then for each element of pRegions, imageOffset.y must be 0 and imageExtent.height must be 1pRegions, imageOffset.z and (imageExtent.depth + imageOffset.z) must both be greater than or equal to 0 and less than or equal to the depth of the specified imageSubresource of dstImagedstImage is of type IMAGE_TYPE_1D or IMAGE_TYPE_2D, then for each element of pRegions, imageOffset.z must be 0 and imageExtent.depth must be 1pRegions, imageOffset.x must be a multiple of the texel block extent width of the VkFormat of dstImagepRegions, imageOffset.y must be a multiple of the texel block extent height of the VkFormat of dstImagepRegions, imageOffset.z must be a multiple of the texel block extent depth of the VkFormat of dstImagepRegions, if the sum of imageOffset.x and extent.width does not equal the width of the subresource specified by srcSubresource, extent.width must be a multiple of the texel block extent width of the VkFormat of dstImagepRegions, if the sum of imageOffset.y and extent.height does not equal the height of the subresource specified by srcSubresource, extent.height must be a multiple of the texel block extent height of the VkFormat of dstImagepRegions, if the sum of imageOffset.z and extent.depth does not equal the depth of the subresource specified by srcSubresource, extent.depth must be a multiple of the texel block extent depth of the VkFormat of dstImagepRegions, imageSubresource.aspectMask must specify aspects present in dstImagedstImage has a multi-planar image format, then for each element of pRegions, imageSubresource.aspectMask must be a single valid multi-planar aspect mask bitdstImage is of type IMAGE_TYPE_3D, for each element of pRegions, imageSubresource.baseArrayLayer must be 0 and imageSubresource.layerCount must be 1pRegions, bufferRowLength must be a multiple of the texel block extent width of the VkFormat of dstImagepRegions, bufferImageHeight must be a multiple of the texel block extent height of the VkFormat of dstImagepRegions, bufferRowLength divided by the texel block extent width and then multiplied by the texel block size of dstImage must be less than or equal to 231-1dstImage does not have either a depth/stencil or a multi-planar format, then for each element of pRegions, bufferOffset must be a multiple of the texel block sizedstImage has a multi-planar format, then for each element of pRegions, bufferOffset must be a multiple of the element size of the compatible format for the format and the aspectMask of the imageSubresource as defined in Compatible formats of planes of multi-planar formatsdstImage has a depth/stencil format, the bufferOffset member of any element of pRegions must be a multiple of 4pRegions not containing VkCopyCommandTransformInfoQCOM in its pNext chain, imageOffset.x and (imageExtent.width + imageOffset.x) must both be greater than or equal to 0 and less than or equal to the width of the specified imageSubresource of dstImagepRegions not containing VkCopyCommandTransformInfoQCOM in its pNext chain, imageOffset.y and (imageExtent.height + imageOffset.y) must both be greater than or equal to 0 and less than or equal to the height of the specified imageSubresource of dstImagesType must be STRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2pNext must be NULLsrcBuffer must be a valid VkBuffer handledstImage must be a valid VkImage handledstImageLayout must be a valid VkImageLayout valuepRegions must be a valid pointer to an array of regionCount valid VkBufferImageCopy2 structuresregionCount must be greater than 0dstImage, and srcBuffer must have been created, allocated, or retrieved from the same VkDeviceVkBufferImageCopy2, CmdCopyBufferToImage2, CmdCopyBufferToImage2KHR
struct VkCopyBufferToImageInfo2 {
VkStructureType sType;
void const * pNext;
VkBuffer srcBuffer;
VkImage dstImage;
VkImageLayout dstImageLayout;
uint32_t regionCount;
VkBufferImageCopy2 const * pRegions;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkCopyBufferToImageInfo2.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DSTIMAGE
The struct member offsets. |
| public static final int | DSTIMAGELAYOUT
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | PREGIONS
The struct member offsets. |
| public static final int | REGIONCOUNT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SRCBUFFER
The struct member offsets. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkCopyBufferToImageInfo2(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkCopyBufferToImageInfo2 | |
| public static VkCopyBufferToImageInfo2. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkCopyBufferToImageInfo2 | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkCopyBufferToImageInfo2. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkCopyBufferToImageInfo2 | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkCopyBufferToImageInfo2 | |
| public static VkCopyBufferToImageInfo2 | create(long address)
Returns a new |
| public static VkCopyBufferToImageInfo2. | create(int
the buffer capacity capacity)Returns a new |
| public static VkCopyBufferToImageInfo2. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkCopyBufferToImageInfo2 | |
| public static VkCopyBufferToImageInfo2. | |
| public long | |
| public VkCopyBufferToImageInfo2 | |
| public int | |
| public VkCopyBufferToImageInfo2 | |
| public static VkCopyBufferToImageInfo2 | |
| public static VkCopyBufferToImageInfo2. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkCopyBufferToImageInfo2 | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkCopyBufferToImageInfo2. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static VkBufferImageCopy2. | |
| public static void | |
| public static int | |
| public static void | nregionCount(long struct, int value)
Sets the specified value to the |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkCopyBufferToImageInfo2 | |
| public VkBufferImageCopy2. | |
| public VkCopyBufferToImageInfo2 | pRegions(VkBufferImageCopy2.
Sets the address of the specified |
| public int | |
| public VkCopyBufferToImageInfo2 | set(int sType, long pNext, long srcBuffer, long dstImage, int dstImageLayout, VkBufferImageCopy2.
Initializes this struct with the specified values. |
| public VkCopyBufferToImageInfo2 | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public VkCopyBufferToImageInfo2 | |
| public int | |
| public VkCopyBufferToImageInfo2 | |
| public VkCopyBufferToImageInfo2 | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DSTIMAGE | back to summary |
|---|---|
| public static final int DSTIMAGE The struct member offsets. | |
| DSTIMAGELAYOUT | back to summary |
|---|---|
| public static final int DSTIMAGELAYOUT The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| PREGIONS | back to summary |
|---|---|
| public static final int PREGIONS The struct member offsets. | |
| REGIONCOUNT | back to summary |
|---|---|
| public static final int REGIONCOUNT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SRCBUFFER | back to summary |
|---|---|
| public static final int SRCBUFFER The struct member offsets. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkCopyBufferToImageInfo2 | back to summary |
|---|---|
| protected VkCopyBufferToImageInfo2(long address, ByteBuffer container) | |
| VkCopyBufferToImageInfo2 | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkCopyBufferToImageInfo2 create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Like
| |
| dstImage | back to summary |
|---|---|
| public long dstImage() the destination image.
| |
| dstImage | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 dstImage(long value) Sets the specified value to the | |
| dstImageLayout | back to summary |
|---|---|
| public int dstImageLayout() the layout of the destination image subresources for the copy.
| |
| dstImageLayout | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 dstImageLayout(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2 malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferToImageInfo2. Returns a new
| |
| ndstImage | back to summary |
|---|---|
| public static long ndstImage(long struct) Unsafe version of | |
| ndstImage | back to summary |
|---|---|
| public static void ndstImage(long struct, long value) Unsafe version of | |
| ndstImageLayout | back to summary |
|---|---|
| public static int ndstImageLayout(long struct) Unsafe version of | |
| ndstImageLayout | back to summary |
|---|---|
| public static void ndstImageLayout(long struct, int value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| npRegions | back to summary |
|---|---|
| public static VkBufferImageCopy2. Unsafe version of | |
| npRegions | back to summary |
|---|---|
| public static void npRegions(long struct, VkBufferImageCopy2. Unsafe version of | |
| nregionCount | back to summary |
|---|---|
| public static int nregionCount(long struct) Unsafe version of | |
| nregionCount | back to summary |
|---|---|
| public static void nregionCount(long struct, int value) Sets the specified value to the | |
| nsrcBuffer | back to summary |
|---|---|
| public static long nsrcBuffer(long struct) Unsafe version of | |
| nsrcBuffer | back to summary |
|---|---|
| public static void nsrcBuffer(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 pNext(long value) Sets the specified value to the | |
| pRegions | back to summary |
|---|---|
| public VkBufferImageCopy2. a pointer to an array of
| |
| pRegions | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 pRegions(VkBufferImageCopy2. Sets the address of the specified | |
| regionCount | back to summary |
|---|---|
| public int regionCount() the number of regions to copy.
| |
| set | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 set(int sType, long pNext, long srcBuffer, long dstImage, int dstImageLayout, VkBufferImageCopy2. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 set(VkCopyBufferToImageInfo2 src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| srcBuffer | back to summary |
|---|---|
| public long srcBuffer() the source buffer.
| |
| srcBuffer | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 srcBuffer(long value) Sets the specified value to the | |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2 sType$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkCopyBufferToImageInfo2 structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkCopyBufferToImageInfo2 |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkCopyBufferToImageInfo2. | |
| public int | |
| public VkCopyBufferToImageInfo2. | dstImageLayout(int value)
Sets the specified value to the |
| protected VkCopyBufferToImageInfo2 | |
| public long | |
| public VkCopyBufferToImageInfo2. | |
| public VkBufferImageCopy2. | Returns: aVkBufferImageCopy2. view of the struct array pointed to by the VkCopyBufferToImageInfo2#pRegions field.
|
| public VkCopyBufferToImageInfo2. | pRegions(VkBufferImageCopy2.
Sets the address of the specified |
| public int | |
| protected VkCopyBufferToImageInfo2. | |
| public long | |
| public VkCopyBufferToImageInfo2. | |
| public int | |
| public VkCopyBufferToImageInfo2. | |
| public VkCopyBufferToImageInfo2. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkCopyBufferToImageInfo2 ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| dstImage | back to summary |
|---|---|
public long dstImage()
| |
| dstImage | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the specified value to the | |
| dstImageLayout | back to summary |
|---|---|
public int dstImageLayout()
| |
| dstImageLayout | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkCopyBufferToImageInfo2 getElementFactory() Implements abstract org.
| |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the specified value to the | |
| pRegions | back to summary |
|---|---|
public VkBufferImageCopy2.
| |
| pRegions | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the address of the specified | |
| regionCount | back to summary |
|---|---|
public int regionCount()
| |
| self | back to summary |
|---|---|
| protected VkCopyBufferToImageInfo2. Implements abstract org.
| |
| srcBuffer | back to summary |
|---|---|
public long srcBuffer()
| |
| srcBuffer | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the specified value to the | |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkCopyBufferToImageInfo2. Sets the | |