public class VkCopyDescriptorSet
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
srcBinding must be a valid binding within srcSetsrcArrayElement and descriptorCount must be less than or equal to the number of array elements in the descriptor set binding specified by srcBinding, and all applicable consecutive bindings, as described by consecutive binding updatesdstBinding must be a valid binding within dstSetdstArrayElement and descriptorCount must be less than or equal to the number of array elements in the descriptor set binding specified by dstBinding, and all applicable consecutive bindings, as described by consecutive binding updatesdstBinding within dstSet must be equal to the type of srcBinding within srcSetsrcSet is equal to dstSet, then the source and destination ranges of descriptors must not overlap, where the ranges may include array elements from consecutive bindings as described by consecutive binding updatessrcBinding is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, srcArrayElement must be an integer multiple of 4dstBinding is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, dstArrayElement must be an integer multiple of 4srcBinding or dstBinding is DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT, descriptorCount must be an integer multiple of 4srcSet’s layout was created with the DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT flag set, then dstSet’s layout must also have been created with the DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT flag setsrcSet’s layout was created without the DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT flag set, then dstSet’s layout must also have been created without the DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT_EXT flag setsrcSet was allocated was created with the DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT_EXT flag set, then the descriptor pool from which dstSet was allocated must also have been created with the DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT_EXT flag setsrcSet was allocated was created without the DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT_EXT flag set, then the descriptor pool from which dstSet was allocated must also have been created without the DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT_EXT flag setdstBinding is DESCRIPTOR_TYPE_SAMPLER, then dstSet must not have been allocated with a layout that included immutable samplers for dstBindingsType must be STRUCTURE_TYPE_COPY_DESCRIPTOR_SETpNext must be NULLsrcSet must be a valid VkDescriptorSet handledstSet must be a valid VkDescriptorSet handledstSet, and srcSet must have been created, allocated, or retrieved from the same VkDevicesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.srcSet – srcSet, srcBinding, and srcArrayElement are the source set, binding, and array element, respectively. If the descriptor binding identified by srcSet and srcBinding has a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then srcArrayElement specifies the starting byte offset within the binding to copy from.srcBinding – see srcSetsrcArrayElement – see srcSetdstSet – dstSet, dstBinding, and dstArrayElement are the destination set, binding, and array element, respectively. If the descriptor binding identified by dstSet and dstBinding has a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then dstArrayElement specifies the starting byte offset within the binding to copy to.dstBinding – see dstSetdstArrayElement – see dstSetdescriptorCount – the number of descriptors to copy from the source to destination. If descriptorCount is greater than the number of remaining array elements in the source or destination binding, those affect consecutive bindings in a manner similar to VkWriteDescriptorSet above. If the descriptor binding identified by srcSet and srcBinding has a descriptor type of DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT then descriptorCount specifies the number of bytes to copy and the remaining array elements in the source or destination binding refer to the remaining number of bytes in those.
struct VkCopyDescriptorSet {
VkStructureType sType;
void const * pNext;
VkDescriptorSet srcSet;
uint32_t srcBinding;
uint32_t srcArrayElement;
VkDescriptorSet dstSet;
uint32_t dstBinding;
uint32_t dstArrayElement;
uint32_t descriptorCount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkCopyDescriptorSet.Buffer
An array of
VkCopyDescriptorSet structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTORCOUNT
The struct member offsets.
|
static int |
DSTARRAYELEMENT
The struct member offsets.
|
static int |
DSTBINDING
The struct member offsets.
|
static int |
DSTSET
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCARRAYELEMENT
The struct member offsets.
|
static int |
SRCBINDING
The struct member offsets.
|
static int |
SRCSET
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkCopyDescriptorSet(java.nio.ByteBuffer container)
Creates a
VkCopyDescriptorSet instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkCopyDescriptorSet |
calloc()
Returns a new
VkCopyDescriptorSet instance allocated with memCalloc. |
static VkCopyDescriptorSet.Buffer |
calloc(int capacity)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated with memCalloc. |
static VkCopyDescriptorSet |
callocStack()
Returns a new
VkCopyDescriptorSet instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCopyDescriptorSet.Buffer |
callocStack(int capacity)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkCopyDescriptorSet.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCopyDescriptorSet |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCopyDescriptorSet instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkCopyDescriptorSet |
create()
Returns a new
VkCopyDescriptorSet instance allocated with BufferUtils. |
static VkCopyDescriptorSet.Buffer |
create(int capacity)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated with BufferUtils. |
static VkCopyDescriptorSet |
create(long address)
Returns a new
VkCopyDescriptorSet instance for the specified memory address. |
static VkCopyDescriptorSet.Buffer |
create(long address,
int capacity)
Create a
VkCopyDescriptorSet.Buffer instance at the specified memory. |
static VkCopyDescriptorSet |
createSafe(long address)
|
static VkCopyDescriptorSet.Buffer |
createSafe(long address,
int capacity)
|
int |
descriptorCount()
Returns the value of the
descriptorCount field. |
VkCopyDescriptorSet |
descriptorCount(int value)
Sets the specified value to the
descriptorCount field. |
int |
dstArrayElement()
Returns the value of the
dstArrayElement field. |
VkCopyDescriptorSet |
dstArrayElement(int value)
Sets the specified value to the
dstArrayElement field. |
int |
dstBinding()
Returns the value of the
dstBinding field. |
VkCopyDescriptorSet |
dstBinding(int value)
Sets the specified value to the
dstBinding field. |
long |
dstSet()
Returns the value of the
dstSet field. |
VkCopyDescriptorSet |
dstSet(long value)
Sets the specified value to the
dstSet field. |
static VkCopyDescriptorSet |
malloc()
Returns a new
VkCopyDescriptorSet instance allocated with memAlloc. |
static VkCopyDescriptorSet.Buffer |
malloc(int capacity)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated with memAlloc. |
static VkCopyDescriptorSet |
mallocStack()
Returns a new
VkCopyDescriptorSet instance allocated on the thread-local MemoryStack. |
static VkCopyDescriptorSet.Buffer |
mallocStack(int capacity)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated on the thread-local MemoryStack. |
static VkCopyDescriptorSet.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkCopyDescriptorSet.Buffer instance allocated on the specified MemoryStack. |
static VkCopyDescriptorSet |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkCopyDescriptorSet instance allocated on the specified MemoryStack. |
static int |
ndescriptorCount(long struct)
Unsafe version of
descriptorCount(). |
static void |
ndescriptorCount(long struct,
int value)
Unsafe version of
descriptorCount. |
static int |
ndstArrayElement(long struct)
Unsafe version of
dstArrayElement(). |
static void |
ndstArrayElement(long struct,
int value)
Unsafe version of
dstArrayElement. |
static int |
ndstBinding(long struct)
Unsafe version of
dstBinding(). |
static void |
ndstBinding(long struct,
int value)
Unsafe version of
dstBinding. |
static long |
ndstSet(long struct)
Unsafe version of
dstSet(). |
static void |
ndstSet(long struct,
long value)
Unsafe version of
dstSet. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsrcArrayElement(long struct)
Unsafe version of
srcArrayElement(). |
static void |
nsrcArrayElement(long struct,
int value)
Unsafe version of
srcArrayElement. |
static int |
nsrcBinding(long struct)
Unsafe version of
srcBinding(). |
static void |
nsrcBinding(long struct,
int value)
Unsafe version of
srcBinding. |
static long |
nsrcSet(long struct)
Unsafe version of
srcSet(). |
static void |
nsrcSet(long struct,
long value)
Unsafe version of
srcSet. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkCopyDescriptorSet |
pNext(long value)
Sets the specified value to the
pNext field. |
VkCopyDescriptorSet |
set(int sType,
long pNext,
long srcSet,
int srcBinding,
int srcArrayElement,
long dstSet,
int dstBinding,
int dstArrayElement,
int descriptorCount)
Initializes this struct with the specified values.
|
VkCopyDescriptorSet |
set(VkCopyDescriptorSet src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
srcArrayElement()
Returns the value of the
srcArrayElement field. |
VkCopyDescriptorSet |
srcArrayElement(int value)
Sets the specified value to the
srcArrayElement field. |
int |
srcBinding()
Returns the value of the
srcBinding field. |
VkCopyDescriptorSet |
srcBinding(int value)
Sets the specified value to the
srcBinding field. |
long |
srcSet()
Returns the value of the
srcSet field. |
VkCopyDescriptorSet |
srcSet(long value)
Sets the specified value to the
srcSet field. |
int |
sType()
Returns the value of the
sType field. |
VkCopyDescriptorSet |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SRCSET
public static final int SRCBINDING
public static final int SRCARRAYELEMENT
public static final int DSTSET
public static final int DSTBINDING
public static final int DSTARRAYELEMENT
public static final int DESCRIPTORCOUNT
public VkCopyDescriptorSet(java.nio.ByteBuffer container)
VkCopyDescriptorSet instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long srcSet()
srcSet field.public int srcBinding()
srcBinding field.public int srcArrayElement()
srcArrayElement field.public long dstSet()
dstSet field.public int dstBinding()
dstBinding field.public int dstArrayElement()
dstArrayElement field.public int descriptorCount()
descriptorCount field.public VkCopyDescriptorSet sType(int value)
sType field.public VkCopyDescriptorSet pNext(long value)
pNext field.public VkCopyDescriptorSet srcSet(long value)
srcSet field.public VkCopyDescriptorSet srcBinding(int value)
srcBinding field.public VkCopyDescriptorSet srcArrayElement(int value)
srcArrayElement field.public VkCopyDescriptorSet dstSet(long value)
dstSet field.public VkCopyDescriptorSet dstBinding(int value)
dstBinding field.public VkCopyDescriptorSet dstArrayElement(int value)
dstArrayElement field.public VkCopyDescriptorSet descriptorCount(int value)
descriptorCount field.public VkCopyDescriptorSet set(int sType, long pNext, long srcSet, int srcBinding, int srcArrayElement, long dstSet, int dstBinding, int dstArrayElement, int descriptorCount)
public VkCopyDescriptorSet set(VkCopyDescriptorSet src)
src - the source structpublic static VkCopyDescriptorSet malloc()
VkCopyDescriptorSet instance allocated with memAlloc. The instance must be explicitly freed.public static VkCopyDescriptorSet calloc()
VkCopyDescriptorSet instance allocated with memCalloc. The instance must be explicitly freed.public static VkCopyDescriptorSet create()
VkCopyDescriptorSet instance allocated with BufferUtils.public static VkCopyDescriptorSet create(long address)
VkCopyDescriptorSet instance for the specified memory address.@Nullable public static VkCopyDescriptorSet createSafe(long address)
public static VkCopyDescriptorSet.Buffer malloc(int capacity)
VkCopyDescriptorSet.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCopyDescriptorSet.Buffer calloc(int capacity)
VkCopyDescriptorSet.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkCopyDescriptorSet.Buffer create(int capacity)
VkCopyDescriptorSet.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkCopyDescriptorSet.Buffer create(long address, int capacity)
VkCopyDescriptorSet.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkCopyDescriptorSet.Buffer createSafe(long address, int capacity)
public static VkCopyDescriptorSet mallocStack()
VkCopyDescriptorSet instance allocated on the thread-local MemoryStack.public static VkCopyDescriptorSet callocStack()
VkCopyDescriptorSet instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkCopyDescriptorSet mallocStack(org.lwjgl.system.MemoryStack stack)
VkCopyDescriptorSet instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkCopyDescriptorSet callocStack(org.lwjgl.system.MemoryStack stack)
VkCopyDescriptorSet instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkCopyDescriptorSet.Buffer mallocStack(int capacity)
VkCopyDescriptorSet.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkCopyDescriptorSet.Buffer callocStack(int capacity)
VkCopyDescriptorSet.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkCopyDescriptorSet.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCopyDescriptorSet.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkCopyDescriptorSet.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkCopyDescriptorSet.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nsrcSet(long struct)
srcSet().public static int nsrcBinding(long struct)
srcBinding().public static int nsrcArrayElement(long struct)
srcArrayElement().public static long ndstSet(long struct)
dstSet().public static int ndstBinding(long struct)
dstBinding().public static int ndstArrayElement(long struct)
dstArrayElement().public static int ndescriptorCount(long struct)
descriptorCount().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nsrcSet(long struct,
long value)
srcSet.public static void nsrcBinding(long struct,
int value)
srcBinding.public static void nsrcArrayElement(long struct,
int value)
srcArrayElement.public static void ndstSet(long struct,
long value)
dstSet.public static void ndstBinding(long struct,
int value)
dstBinding.public static void ndstArrayElement(long struct,
int value)
dstArrayElement.public static void ndescriptorCount(long struct,
int value)
descriptorCount.Copyright LWJGL. All Rights Reserved. License terms.