Package org.lwjgl.vulkan
Class VkCopyDescriptorSet
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkCopyDescriptorSet(ByteBuffer container) Creates aVkCopyDescriptorSetinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkCopyDescriptorSetcalloc()Returns a newVkCopyDescriptorSetinstance allocated withmemCalloc.static VkCopyDescriptorSet.Buffercalloc(int capacity) Returns a newVkCopyDescriptorSet.Bufferinstance allocated withmemCalloc.static VkCopyDescriptorSet.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkCopyDescriptorSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyDescriptorSetcalloc(MemoryStack stack) Returns a newVkCopyDescriptorSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyDescriptorSetcreate()Returns a newVkCopyDescriptorSetinstance allocated withBufferUtils.static VkCopyDescriptorSet.Buffercreate(int capacity) Returns a newVkCopyDescriptorSet.Bufferinstance allocated withBufferUtils.static VkCopyDescriptorSetcreate(long address) Returns a newVkCopyDescriptorSetinstance for the specified memory address.static VkCopyDescriptorSet.Buffercreate(long address, int capacity) Create aVkCopyDescriptorSet.Bufferinstance at the specified memory.static @Nullable VkCopyDescriptorSetcreateSafe(long address) static @Nullable VkCopyDescriptorSet.BuffercreateSafe(long address, int capacity) intdescriptorCount(int value) Sets the specified value to thedescriptorCountfield.intdstArrayElement(int value) Sets the specified value to thedstArrayElementfield.intdstBinding(int value) Sets the specified value to thedstBindingfield.longdstSet()dstSet(long value) Sets the specified value to thedstSetfield.static VkCopyDescriptorSetmalloc()Returns a newVkCopyDescriptorSetinstance allocated withmemAlloc.static VkCopyDescriptorSet.Buffermalloc(int capacity) Returns a newVkCopyDescriptorSet.Bufferinstance allocated withmemAlloc.static VkCopyDescriptorSet.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkCopyDescriptorSet.Bufferinstance allocated on the specifiedMemoryStack.static VkCopyDescriptorSetmalloc(MemoryStack stack) Returns a newVkCopyDescriptorSetinstance allocated on the specifiedMemoryStack.static intndescriptorCount(long struct) Unsafe version ofdescriptorCount().static voidndescriptorCount(long struct, int value) Unsafe version ofdescriptorCount.static intndstArrayElement(long struct) Unsafe version ofdstArrayElement().static voidndstArrayElement(long struct, int value) Unsafe version ofdstArrayElement.static intndstBinding(long struct) Unsafe version ofdstBinding().static voidndstBinding(long struct, int value) Unsafe version ofdstBinding.static longndstSet(long struct) Unsafe version ofdstSet().static voidndstSet(long struct, long value) Unsafe version ofdstSet.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static intnsrcArrayElement(long struct) Unsafe version ofsrcArrayElement().static voidnsrcArrayElement(long struct, int value) Unsafe version ofsrcArrayElement.static intnsrcBinding(long struct) Unsafe version ofsrcBinding().static voidnsrcBinding(long struct, int value) Unsafe version ofsrcBinding.static longnsrcSet(long struct) Unsafe version ofsrcSet().static voidnsrcSet(long struct, long value) Unsafe version ofsrcSet.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longpNext()pNext(long value) Sets the specified value to thepNextfield.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.set(VkCopyDescriptorSet src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsrcArrayElement(int value) Sets the specified value to thesrcArrayElementfield.intsrcBinding(int value) Sets the specified value to thesrcBindingfield.longsrcSet()srcSet(long value) Sets the specified value to thesrcSetfield.intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_COPY_DESCRIPTOR_SETvalue to thesTypefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
SRCSET
public static final int SRCSETThe struct member offsets. -
SRCBINDING
public static final int SRCBINDINGThe struct member offsets. -
SRCARRAYELEMENT
public static final int SRCARRAYELEMENTThe struct member offsets. -
DSTSET
public static final int DSTSETThe struct member offsets. -
DSTBINDING
public static final int DSTBINDINGThe struct member offsets. -
DSTARRAYELEMENT
public static final int DSTARRAYELEMENTThe struct member offsets. -
DESCRIPTORCOUNT
public static final int DESCRIPTORCOUNTThe struct member offsets.
-
-
Constructor Details
-
VkCopyDescriptorSet
Creates aVkCopyDescriptorSetinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkCopyDescriptorSet>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
srcSet
public long srcSet()- Returns:
- the value of the
srcSetfield.
-
srcBinding
public int srcBinding()- Returns:
- the value of the
srcBindingfield.
-
srcArrayElement
public int srcArrayElement()- Returns:
- the value of the
srcArrayElementfield.
-
dstSet
public long dstSet()- Returns:
- the value of the
dstSetfield.
-
dstBinding
public int dstBinding()- Returns:
- the value of the
dstBindingfield.
-
dstArrayElement
public int dstArrayElement()- Returns:
- the value of the
dstArrayElementfield.
-
descriptorCount
public int descriptorCount()- Returns:
- the value of the
descriptorCountfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_COPY_DESCRIPTOR_SETvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
srcSet
Sets the specified value to thesrcSetfield. -
srcBinding
Sets the specified value to thesrcBindingfield. -
srcArrayElement
Sets the specified value to thesrcArrayElementfield. -
dstSet
Sets the specified value to thedstSetfield. -
dstBinding
Sets the specified value to thedstBindingfield. -
dstArrayElement
Sets the specified value to thedstArrayElementfield. -
descriptorCount
Sets the specified value to thedescriptorCountfield. -
set
public 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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkCopyDescriptorSetinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkCopyDescriptorSetinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkCopyDescriptorSetinstance allocated withBufferUtils. -
create
Returns a newVkCopyDescriptorSetinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkCopyDescriptorSet.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkCopyDescriptorSet.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkCopyDescriptorSet.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkCopyDescriptorSet.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkCopyDescriptorSetinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkCopyDescriptorSetinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkCopyDescriptorSet.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkCopyDescriptorSet.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nsrcSet
public static long nsrcSet(long struct) Unsafe version ofsrcSet(). -
nsrcBinding
public static int nsrcBinding(long struct) Unsafe version ofsrcBinding(). -
nsrcArrayElement
public static int nsrcArrayElement(long struct) Unsafe version ofsrcArrayElement(). -
ndstSet
public static long ndstSet(long struct) Unsafe version ofdstSet(). -
ndstBinding
public static int ndstBinding(long struct) Unsafe version ofdstBinding(). -
ndstArrayElement
public static int ndstArrayElement(long struct) Unsafe version ofdstArrayElement(). -
ndescriptorCount
public static int ndescriptorCount(long struct) Unsafe version ofdescriptorCount(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nsrcSet
public static void nsrcSet(long struct, long value) Unsafe version ofsrcSet. -
nsrcBinding
public static void nsrcBinding(long struct, int value) Unsafe version ofsrcBinding. -
nsrcArrayElement
public static void nsrcArrayElement(long struct, int value) Unsafe version ofsrcArrayElement. -
ndstSet
public static void ndstSet(long struct, long value) Unsafe version ofdstSet. -
ndstBinding
public static void ndstBinding(long struct, int value) Unsafe version ofdstBinding. -
ndstArrayElement
public static void ndstArrayElement(long struct, int value) Unsafe version ofdstArrayElement. -
ndescriptorCount
public static void ndescriptorCount(long struct, int value) Unsafe version ofdescriptorCount.
-