srcOffset member of each element of pRegions must be less than the size of srcBufferdstOffset member of each element of pRegions must be less than the size of dstBuffersize member of each element of pRegions must be less than or equal to the size of srcBuffer minus srcOffsetsize member of each element of pRegions must be less than or equal to the size of dstBuffer minus dstOffsetpRegions, must not overlap in memorysrcBuffer must have been created with BUFFER_USAGE_TRANSFER_SRC_BIT usage flagsrcBuffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory objectdstBuffer must have been created with BUFFER_USAGE_TRANSFER_DST_BIT usage flagdstBuffer is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory objectsType must be STRUCTURE_TYPE_COPY_BUFFER_INFO_2pNext must be NULLsrcBuffer must be a valid VkBuffer handledstBuffer must be a valid VkBuffer handlepRegions must be a valid pointer to an array of regionCount valid VkBufferCopy2 structuresregionCount must be greater than 0dstBuffer, and srcBuffer must have been created, allocated, or retrieved from the same VkDeviceVkBufferCopy2, CmdCopyBuffer2, CmdCopyBuffer2KHR
struct VkCopyBufferInfo2 {
VkStructureType sType;
void const * pNext;
VkBuffer srcBuffer;
VkBuffer dstBuffer;
uint32_t regionCount;
VkBufferCopy2 const * pRegions;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkCopyBufferInfo2.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DSTBUFFER
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 | VkCopyBufferInfo2(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkCopyBufferInfo2 | |
| public static VkCopyBufferInfo2. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkCopyBufferInfo2 | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkCopyBufferInfo2. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkCopyBufferInfo2 | 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 VkCopyBufferInfo2 | |
| public static VkCopyBufferInfo2 | |
| public static VkCopyBufferInfo2. | create(int
the buffer capacity capacity)Returns a new |
| public static VkCopyBufferInfo2. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkCopyBufferInfo2 | |
| public static VkCopyBufferInfo2. | |
| public long | |
| public VkCopyBufferInfo2 | |
| public static VkCopyBufferInfo2 | |
| public static VkCopyBufferInfo2. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkCopyBufferInfo2 | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkCopyBufferInfo2. | 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 long | |
| public static void | |
| public static VkBufferCopy2. | |
| 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 VkCopyBufferInfo2 | |
| public VkBufferCopy2. | |
| public VkCopyBufferInfo2 | pRegions(VkBufferCopy2.
Sets the address of the specified |
| public int | |
| public VkCopyBufferInfo2 | set(int sType, long pNext, long srcBuffer, long dstBuffer, VkBufferCopy2.
Initializes this struct with the specified values. |
| public VkCopyBufferInfo2 | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public VkCopyBufferInfo2 | |
| public int | |
| public VkCopyBufferInfo2 | |
| public VkCopyBufferInfo2 | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DSTBUFFER | back to summary |
|---|---|
| public static final int DSTBUFFER 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. | |
| VkCopyBufferInfo2 | back to summary |
|---|---|
| protected VkCopyBufferInfo2(long address, ByteBuffer container) | |
| VkCopyBufferInfo2 | back to summary |
|---|---|
| public VkCopyBufferInfo2(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2 calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2 calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkCopyBufferInfo2 create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkCopyBufferInfo2 create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkCopyBufferInfo2 create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkCopyBufferInfo2 createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Like
| |
| dstBuffer | back to summary |
|---|---|
| public long dstBuffer() the destination buffer.
| |
| dstBuffer | back to summary |
|---|---|
| public VkCopyBufferInfo2 dstBuffer(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2 malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2 malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkCopyBufferInfo2. Returns a new
| |
| ndstBuffer | back to summary |
|---|---|
| public static long ndstBuffer(long struct) Unsafe version of | |
| ndstBuffer | back to summary |
|---|---|
| public static void ndstBuffer(long struct, long 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 VkBufferCopy2. Unsafe version of | |
| npRegions | back to summary |
|---|---|
| public static void npRegions(long struct, VkBufferCopy2. 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 VkCopyBufferInfo2 pNext(long value) Sets the specified value to the | |
| pRegions | back to summary |
|---|---|
| public VkBufferCopy2. a pointer to an array of
| |
| pRegions | back to summary |
|---|---|
| public VkCopyBufferInfo2 pRegions(VkBufferCopy2. Sets the address of the specified | |
| regionCount | back to summary |
|---|---|
| public int regionCount() the number of regions to copy.
| |
| set | back to summary |
|---|---|
| public VkCopyBufferInfo2 set(int sType, long pNext, long srcBuffer, long dstBuffer, VkBufferCopy2. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkCopyBufferInfo2 set(VkCopyBufferInfo2 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 VkCopyBufferInfo2 srcBuffer(long value) Sets the specified value to the | |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkCopyBufferInfo2 sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkCopyBufferInfo2 sType$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkCopyBufferInfo2 structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkCopyBufferInfo2 |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkCopyBufferInfo2. | |
| protected VkCopyBufferInfo2 | |
| public long | |
| public VkCopyBufferInfo2. | |
| public VkBufferCopy2. | Returns: aVkBufferCopy2. view of the struct array pointed to by the VkCopyBufferInfo2#pRegions field.
|
| public VkCopyBufferInfo2. | pRegions(VkBufferCopy2.
Sets the address of the specified |
| public int | |
| protected VkCopyBufferInfo2. | |
| public long | |
| public VkCopyBufferInfo2. | |
| public int | |
| public VkCopyBufferInfo2. | |
| public VkCopyBufferInfo2. | sType$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkCopyBufferInfo2 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) | |
| dstBuffer | back to summary |
|---|---|
public long dstBuffer()
| |
| dstBuffer | back to summary |
|---|---|
| public VkCopyBufferInfo2. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkCopyBufferInfo2 getElementFactory() Implements abstract org.
| |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkCopyBufferInfo2. Sets the specified value to the | |
| pRegions | back to summary |
|---|---|
public VkBufferCopy2.
| |
| pRegions | back to summary |
|---|---|
| public VkCopyBufferInfo2. Sets the address of the specified | |
| regionCount | back to summary |
|---|---|
public int regionCount()
| |
| self | back to summary |
|---|---|
| protected VkCopyBufferInfo2. Implements abstract org.
| |
| srcBuffer | back to summary |
|---|---|
public long srcBuffer()
| |
| srcBuffer | back to summary |
|---|---|
| public VkCopyBufferInfo2. Sets the specified value to the | |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkCopyBufferInfo2. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkCopyBufferInfo2. Sets the | |