Class VkPushDescriptorSetInfo
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPushDescriptorSetInfo
- All Implemented Interfaces:
Addressable
Represents VkPushDescriptorSetInfo.
Layout
struct VkPushDescriptorSetInfo {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkShaderStageFlags stageFlags;
(uint64_t) VkPipelineLayout layout;
uint32_t set;
uint32_t descriptorWriteCount;
const VkWriteDescriptorSet* pDescriptorWrites;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkPushDescriptorSetInfo.static final MemoryLayoutThe memory layout ofdescriptorWriteCount.static final MemoryLayoutThe memory layout oflayout.static final MemoryLayoutThe memory layout ofpDescriptorWrites.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofset.static final MemoryLayoutThe memory layout ofstageFlags.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofdescriptorWriteCount.static final longThe byte offset oflayout.static final longThe byte offset ofpDescriptorWrites.static final longThe byte offset ofpNext.static final longThe byte offset ofset.static final longThe byte offset ofstageFlags.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofdescriptorWriteCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofpDescriptorWritesof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkPushDescriptorSetInfo(MemorySegment segment, long elementCount) CreatesVkPushDescriptorSetInfowith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPushDescriptorSetInfoalloc(SegmentAllocator allocator) Allocates aVkPushDescriptorSetInfowith the given segment allocator.static VkPushDescriptorSetInfoalloc(SegmentAllocator allocator, long count) Allocates aVkPushDescriptorSetInfowith the given segment allocator and count.asSlice(long index) Creates a slice ofVkPushDescriptorSetInfo.asSlice(long index, long count) Creates a slice ofVkPushDescriptorSetInfo.at(long index, Consumer<VkPushDescriptorSetInfo> func) VisitsVkPushDescriptorSetInfobuffer at the given index.Copies from the given source.intReturnsdescriptorWriteCount.descriptorWriteCount(int value) SetsdescriptorWriteCountwith the given value.static intdescriptorWriteCount(MemorySegment segment, long index) ReturnsdescriptorWriteCountat the given index.static voiddescriptorWriteCount(MemorySegment segment, long index, int value) SetsdescriptorWriteCountwith the given value at the given index.intdescriptorWriteCountAt(long index) ReturnsdescriptorWriteCountat the given index.descriptorWriteCountAt(long index, int value) SetsdescriptorWriteCountwith the given value at the given index.longlayout()Returnslayout.layout(long value) Setslayoutwith the given value.static longlayout(MemorySegment segment, long index) Returnslayoutat the given index.static voidlayout(MemorySegment segment, long index, long value) Setslayoutwith the given value at the given index.longlayoutAt(long index) Returnslayoutat the given index.layoutAt(long index, long value) Setslayoutwith the given value at the given index.static VkPushDescriptorSetInfoof(MemorySegment segment) CreatesVkPushDescriptorSetInfowith the given segment.static VkPushDescriptorSetInfoofNative(MemorySegment segment) CreatesVkPushDescriptorSetInfowith the given segment.static VkPushDescriptorSetInfoofNative(MemorySegment segment, long count) CreatesVkPushDescriptorSetInfowith the given segment.ReturnspDescriptorWrites.pDescriptorWrites(MemorySegment value) SetspDescriptorWriteswith the given value.static MemorySegmentpDescriptorWrites(MemorySegment segment, long index) ReturnspDescriptorWritesat the given index.static voidpDescriptorWrites(MemorySegment segment, long index, MemorySegment value) SetspDescriptorWriteswith the given value at the given index.pDescriptorWritesAt(long index) ReturnspDescriptorWritesat the given index.pDescriptorWritesAt(long index, MemorySegment value) SetspDescriptorWriteswith the given value at the given index.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.intset()Returnsset.set(int value) Setssetwith the given value.static intset(MemorySegment segment, long index) Returnssetat the given index.static voidset(MemorySegment segment, long index, int value) Setssetwith the given value at the given index.intsetAt(long index) Returnssetat the given index.setAt(long index, int value) Setssetwith the given value at the given index.intReturnsstageFlags.stageFlags(int value) SetsstageFlagswith the given value.static intstageFlags(MemorySegment segment, long index) ReturnsstageFlagsat the given index.static voidstageFlags(MemorySegment segment, long index, int value) SetsstageFlagswith the given value at the given index.intstageFlagsAt(long index) ReturnsstageFlagsat the given index.stageFlagsAt(long index, int value) SetsstageFlagswith 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 ofVkPushDescriptorSetInfo. -
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_stageFlags
public static final long OFFSET_stageFlagsThe byte offset ofstageFlags. -
LAYOUT_stageFlags
The memory layout ofstageFlags. -
VH_stageFlags
-
OFFSET_layout
public static final long OFFSET_layoutThe byte offset oflayout. -
LAYOUT_layout
The memory layout oflayout. -
VH_layout
-
OFFSET_set
public static final long OFFSET_setThe byte offset ofset. -
LAYOUT_set
The memory layout ofset. -
VH_set
-
OFFSET_descriptorWriteCount
public static final long OFFSET_descriptorWriteCountThe byte offset ofdescriptorWriteCount. -
LAYOUT_descriptorWriteCount
The memory layout ofdescriptorWriteCount. -
VH_descriptorWriteCount
-
OFFSET_pDescriptorWrites
public static final long OFFSET_pDescriptorWritesThe byte offset ofpDescriptorWrites. -
LAYOUT_pDescriptorWrites
The memory layout ofpDescriptorWrites. -
VH_pDescriptorWrites
-
-
Constructor Details
-
VkPushDescriptorSetInfo
CreatesVkPushDescriptorSetInfowith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkPushDescriptorSetInfowith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPushDescriptorSetInfowith 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
VkPushDescriptorSetInfowith 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 aVkPushDescriptorSetInfowith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkPushDescriptorSetInfo
-
alloc
Allocates aVkPushDescriptorSetInfowith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkPushDescriptorSetInfo
-
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
-
stageFlags
ReturnsstageFlagsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
stageFlagsat the given index
-
stageFlags
public int stageFlags()ReturnsstageFlags.- Returns:
stageFlags
-
stageFlags
SetsstageFlagswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
stageFlags
SetsstageFlagswith the given value.- Parameters:
value- the value- Returns:
this
-
layout
Returnslayoutat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
layoutat the given index
-
layout
public long layout()Returnslayout.- Returns:
layout
-
layout
Setslayoutwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
layout
Setslayoutwith the given value.- Parameters:
value- the value- Returns:
this
-
set
Returnssetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
setat the given index
-
set
public int set()Returnsset.- Returns:
set
-
set
Setssetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
set
Setssetwith the given value.- Parameters:
value- the value- Returns:
this
-
descriptorWriteCount
ReturnsdescriptorWriteCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
descriptorWriteCountat the given index
-
descriptorWriteCount
public int descriptorWriteCount()ReturnsdescriptorWriteCount.- Returns:
descriptorWriteCount
-
descriptorWriteCount
SetsdescriptorWriteCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
descriptorWriteCount
SetsdescriptorWriteCountwith the given value.- Parameters:
value- the value- Returns:
this
-
pDescriptorWrites
ReturnspDescriptorWritesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pDescriptorWritesat the given index
-
pDescriptorWrites
-
pDescriptorWrites
SetspDescriptorWriteswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pDescriptorWrites
SetspDescriptorWriteswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkPushDescriptorSetInfo.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkPushDescriptorSetInfo
-
asSlice
Creates a slice ofVkPushDescriptorSetInfo.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkPushDescriptorSetInfo
-
at
VisitsVkPushDescriptorSetInfobuffer 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
-
stageFlagsAt
public int stageFlagsAt(long index) ReturnsstageFlagsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
stageFlagsat the given index
-
stageFlagsAt
SetsstageFlagswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
layoutAt
public long layoutAt(long index) Returnslayoutat the given index.- Parameters:
index- the index of the struct buffer- Returns:
layoutat the given index
-
layoutAt
Setslayoutwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
setAt
public int setAt(long index) Returnssetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
setat the given index
-
setAt
Setssetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
descriptorWriteCountAt
public int descriptorWriteCountAt(long index) ReturnsdescriptorWriteCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
descriptorWriteCountat the given index
-
descriptorWriteCountAt
SetsdescriptorWriteCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pDescriptorWritesAt
ReturnspDescriptorWritesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pDescriptorWritesat the given index
-
pDescriptorWritesAt
SetspDescriptorWriteswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-