Class VkCopyDescriptorSet
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkCopyDescriptorSet
- All Implemented Interfaces:
Addressable
Represents VkCopyDescriptorSet.
Layout
struct VkCopyDescriptorSet {
(int) VkStructureType sType;
const void* pNext;
(uint64_t) VkDescriptorSet srcSet;
uint32_t srcBinding;
uint32_t srcArrayElement;
(uint64_t) VkDescriptorSet dstSet;
uint32_t dstBinding;
uint32_t dstArrayElement;
uint32_t descriptorCount;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkCopyDescriptorSet.static final MemoryLayoutThe memory layout ofdescriptorCount.static final MemoryLayoutThe memory layout ofdstArrayElement.static final MemoryLayoutThe memory layout ofdstBinding.static final MemoryLayoutThe memory layout ofdstSet.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsrcArrayElement.static final MemoryLayoutThe memory layout ofsrcBinding.static final MemoryLayoutThe memory layout ofsrcSet.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofdescriptorCount.static final longThe byte offset ofdstArrayElement.static final longThe byte offset ofdstBinding.static final longThe byte offset ofdstSet.static final longThe byte offset ofpNext.static final longThe byte offset ofsrcArrayElement.static final longThe byte offset ofsrcBinding.static final longThe byte offset ofsrcSet.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofdescriptorCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofdstArrayElementof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofsrcArrayElementof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkCopyDescriptorSet(MemorySegment segment, long elementCount) CreatesVkCopyDescriptorSetwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkCopyDescriptorSetalloc(SegmentAllocator allocator) Allocates aVkCopyDescriptorSetwith the given segment allocator.static VkCopyDescriptorSetalloc(SegmentAllocator allocator, long count) Allocates aVkCopyDescriptorSetwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkCopyDescriptorSet.asSlice(long index, long count) Creates a slice ofVkCopyDescriptorSet.at(long index, Consumer<VkCopyDescriptorSet> func) VisitsVkCopyDescriptorSetbuffer at the given index.Copies from the given source.intReturnsdescriptorCount.descriptorCount(int value) SetsdescriptorCountwith the given value.static intdescriptorCount(MemorySegment segment, long index) ReturnsdescriptorCountat the given index.static voiddescriptorCount(MemorySegment segment, long index, int value) SetsdescriptorCountwith the given value at the given index.intdescriptorCountAt(long index) ReturnsdescriptorCountat the given index.descriptorCountAt(long index, int value) SetsdescriptorCountwith the given value at the given index.intReturnsdstArrayElement.dstArrayElement(int value) SetsdstArrayElementwith the given value.static intdstArrayElement(MemorySegment segment, long index) ReturnsdstArrayElementat the given index.static voiddstArrayElement(MemorySegment segment, long index, int value) SetsdstArrayElementwith the given value at the given index.intdstArrayElementAt(long index) ReturnsdstArrayElementat the given index.dstArrayElementAt(long index, int value) SetsdstArrayElementwith the given value at the given index.intReturnsdstBinding.dstBinding(int value) SetsdstBindingwith the given value.static intdstBinding(MemorySegment segment, long index) ReturnsdstBindingat the given index.static voiddstBinding(MemorySegment segment, long index, int value) SetsdstBindingwith the given value at the given index.intdstBindingAt(long index) ReturnsdstBindingat the given index.dstBindingAt(long index, int value) SetsdstBindingwith the given value at the given index.longdstSet()ReturnsdstSet.dstSet(long value) SetsdstSetwith the given value.static longdstSet(MemorySegment segment, long index) ReturnsdstSetat the given index.static voiddstSet(MemorySegment segment, long index, long value) SetsdstSetwith the given value at the given index.longdstSetAt(long index) ReturnsdstSetat the given index.dstSetAt(long index, long value) SetsdstSetwith the given value at the given index.static VkCopyDescriptorSetof(MemorySegment segment) CreatesVkCopyDescriptorSetwith the given segment.static VkCopyDescriptorSetofNative(MemorySegment segment) CreatesVkCopyDescriptorSetwith the given segment.static VkCopyDescriptorSetofNative(MemorySegment segment, long count) CreatesVkCopyDescriptorSetwith the given segment.pNext()ReturnspNext.pNext(MemorySegment value) SetspNextwith the given value.static MemorySegmentpNext(MemorySegment segment, long index) ReturnspNextat the given index.static voidpNext(MemorySegment segment, long index, MemorySegment value) SetspNextwith the given value at the given index.pNextAt(long index) ReturnspNextat the given index.pNextAt(long index, MemorySegment value) SetspNextwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.intReturnssrcArrayElement.srcArrayElement(int value) SetssrcArrayElementwith the given value.static intsrcArrayElement(MemorySegment segment, long index) ReturnssrcArrayElementat the given index.static voidsrcArrayElement(MemorySegment segment, long index, int value) SetssrcArrayElementwith the given value at the given index.intsrcArrayElementAt(long index) ReturnssrcArrayElementat the given index.srcArrayElementAt(long index, int value) SetssrcArrayElementwith the given value at the given index.intReturnssrcBinding.srcBinding(int value) SetssrcBindingwith the given value.static intsrcBinding(MemorySegment segment, long index) ReturnssrcBindingat the given index.static voidsrcBinding(MemorySegment segment, long index, int value) SetssrcBindingwith the given value at the given index.intsrcBindingAt(long index) ReturnssrcBindingat the given index.srcBindingAt(long index, int value) SetssrcBindingwith the given value at the given index.longsrcSet()ReturnssrcSet.srcSet(long value) SetssrcSetwith the given value.static longsrcSet(MemorySegment segment, long index) ReturnssrcSetat the given index.static voidsrcSet(MemorySegment segment, long index, long value) SetssrcSetwith the given value at the given index.longsrcSetAt(long index) ReturnssrcSetat the given index.srcSetAt(long index, long value) SetssrcSetwith the given value at the given index.intsType()ReturnssType.sType(int value) SetssTypewith the given value.static intsType(MemorySegment segment, long index) ReturnssTypeat the given index.static voidsType(MemorySegment segment, long index, int value) SetssTypewith the given value at the given index.intsTypeAt(long index) ReturnssTypeat the given index.sTypeAt(long index, int value) SetssTypewith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkCopyDescriptorSet. -
OFFSET_sType
public static final long OFFSET_sTypeThe byte offset ofsType. -
LAYOUT_sType
The memory layout ofsType. -
VH_sType
-
OFFSET_pNext
public static final long OFFSET_pNextThe byte offset ofpNext. -
LAYOUT_pNext
The memory layout ofpNext. -
VH_pNext
-
OFFSET_srcSet
public static final long OFFSET_srcSetThe byte offset ofsrcSet. -
LAYOUT_srcSet
The memory layout ofsrcSet. -
VH_srcSet
-
OFFSET_srcBinding
public static final long OFFSET_srcBindingThe byte offset ofsrcBinding. -
LAYOUT_srcBinding
The memory layout ofsrcBinding. -
VH_srcBinding
-
OFFSET_srcArrayElement
public static final long OFFSET_srcArrayElementThe byte offset ofsrcArrayElement. -
LAYOUT_srcArrayElement
The memory layout ofsrcArrayElement. -
VH_srcArrayElement
-
OFFSET_dstSet
public static final long OFFSET_dstSetThe byte offset ofdstSet. -
LAYOUT_dstSet
The memory layout ofdstSet. -
VH_dstSet
-
OFFSET_dstBinding
public static final long OFFSET_dstBindingThe byte offset ofdstBinding. -
LAYOUT_dstBinding
The memory layout ofdstBinding. -
VH_dstBinding
-
OFFSET_dstArrayElement
public static final long OFFSET_dstArrayElementThe byte offset ofdstArrayElement. -
LAYOUT_dstArrayElement
The memory layout ofdstArrayElement. -
VH_dstArrayElement
-
OFFSET_descriptorCount
public static final long OFFSET_descriptorCountThe byte offset ofdescriptorCount. -
LAYOUT_descriptorCount
The memory layout ofdescriptorCount. -
VH_descriptorCount
-
-
Constructor Details
-
VkCopyDescriptorSet
CreatesVkCopyDescriptorSetwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkCopyDescriptorSetwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkCopyDescriptorSetwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkCopyDescriptorSetwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkCopyDescriptorSetwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkCopyDescriptorSet
-
alloc
Allocates aVkCopyDescriptorSetwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkCopyDescriptorSet
-
copyFrom
Copies from the given source.- Parameters:
src- the source- Returns:
this
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count- the new count- Returns:
- the reinterpreted buffer
-
sType
ReturnssTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sTypeat the given index
-
sType
public int sType()ReturnssType.- Returns:
sType
-
sType
SetssTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sType
SetssTypewith the given value.- Parameters:
value- the value- Returns:
this
-
pNext
ReturnspNextat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pNextat the given index
-
pNext
-
pNext
SetspNextwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pNext
SetspNextwith the given value.- Parameters:
value- the value- Returns:
this
-
srcSet
ReturnssrcSetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
srcSetat the given index
-
srcSet
public long srcSet()ReturnssrcSet.- Returns:
srcSet
-
srcSet
SetssrcSetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
srcSet
SetssrcSetwith the given value.- Parameters:
value- the value- Returns:
this
-
srcBinding
ReturnssrcBindingat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
srcBindingat the given index
-
srcBinding
public int srcBinding()ReturnssrcBinding.- Returns:
srcBinding
-
srcBinding
SetssrcBindingwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
srcBinding
SetssrcBindingwith the given value.- Parameters:
value- the value- Returns:
this
-
srcArrayElement
ReturnssrcArrayElementat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
srcArrayElementat the given index
-
srcArrayElement
public int srcArrayElement()ReturnssrcArrayElement.- Returns:
srcArrayElement
-
srcArrayElement
SetssrcArrayElementwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
srcArrayElement
SetssrcArrayElementwith the given value.- Parameters:
value- the value- Returns:
this
-
dstSet
ReturnsdstSetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dstSetat the given index
-
dstSet
public long dstSet()ReturnsdstSet.- Returns:
dstSet
-
dstSet
SetsdstSetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
dstSet
SetsdstSetwith the given value.- Parameters:
value- the value- Returns:
this
-
dstBinding
ReturnsdstBindingat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dstBindingat the given index
-
dstBinding
public int dstBinding()ReturnsdstBinding.- Returns:
dstBinding
-
dstBinding
SetsdstBindingwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
dstBinding
SetsdstBindingwith the given value.- Parameters:
value- the value- Returns:
this
-
dstArrayElement
ReturnsdstArrayElementat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dstArrayElementat the given index
-
dstArrayElement
public int dstArrayElement()ReturnsdstArrayElement.- Returns:
dstArrayElement
-
dstArrayElement
SetsdstArrayElementwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
dstArrayElement
SetsdstArrayElementwith the given value.- Parameters:
value- the value- Returns:
this
-
descriptorCount
ReturnsdescriptorCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
descriptorCountat the given index
-
descriptorCount
public int descriptorCount()ReturnsdescriptorCount.- Returns:
descriptorCount
-
descriptorCount
SetsdescriptorCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
descriptorCount
SetsdescriptorCountwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkCopyDescriptorSet.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkCopyDescriptorSet
-
asSlice
Creates a slice ofVkCopyDescriptorSet.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkCopyDescriptorSet
-
at
VisitsVkCopyDescriptorSetbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
sTypeAt
public int sTypeAt(long index) ReturnssTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sTypeat the given index
-
sTypeAt
SetssTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pNextAt
ReturnspNextat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pNextat the given index
-
pNextAt
SetspNextwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
srcSetAt
public long srcSetAt(long index) ReturnssrcSetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
srcSetat the given index
-
srcSetAt
SetssrcSetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
srcBindingAt
public int srcBindingAt(long index) ReturnssrcBindingat the given index.- Parameters:
index- the index of the struct buffer- Returns:
srcBindingat the given index
-
srcBindingAt
SetssrcBindingwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
srcArrayElementAt
public int srcArrayElementAt(long index) ReturnssrcArrayElementat the given index.- Parameters:
index- the index of the struct buffer- Returns:
srcArrayElementat the given index
-
srcArrayElementAt
SetssrcArrayElementwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
dstSetAt
public long dstSetAt(long index) ReturnsdstSetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dstSetat the given index
-
dstSetAt
SetsdstSetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
dstBindingAt
public int dstBindingAt(long index) ReturnsdstBindingat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dstBindingat the given index
-
dstBindingAt
SetsdstBindingwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
dstArrayElementAt
public int dstArrayElementAt(long index) ReturnsdstArrayElementat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dstArrayElementat the given index
-
dstArrayElementAt
SetsdstArrayElementwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
descriptorCountAt
public int descriptorCountAt(long index) ReturnsdescriptorCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
descriptorCountat the given index
-
descriptorCountAt
SetsdescriptorCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-