Class VkDescriptorPoolSize
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkDescriptorPoolSize
- All Implemented Interfaces:
Addressable
Represents VkDescriptorPoolSize.
Layout
struct VkDescriptorPoolSize {
(int) VkDescriptorType type;
uint32_t descriptorCount;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkDescriptorPoolSize.static final MemoryLayoutThe memory layout ofdescriptorCount.static final MemoryLayoutThe memory layout oftype.static final longThe byte offset ofdescriptorCount.static final longThe byte offset oftype.static final VarHandleTheVarHandleofdescriptorCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorPoolSize(MemorySegment segment, long elementCount) CreatesVkDescriptorPoolSizewith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDescriptorPoolSizealloc(SegmentAllocator allocator) Allocates aVkDescriptorPoolSizewith the given segment allocator.static VkDescriptorPoolSizealloc(SegmentAllocator allocator, long count) Allocates aVkDescriptorPoolSizewith the given segment allocator and count.asSlice(long index) Creates a slice ofVkDescriptorPoolSize.asSlice(long index, long count) Creates a slice ofVkDescriptorPoolSize.at(long index, Consumer<VkDescriptorPoolSize> func) VisitsVkDescriptorPoolSizebuffer 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.static VkDescriptorPoolSizeof(MemorySegment segment) CreatesVkDescriptorPoolSizewith the given segment.static VkDescriptorPoolSizeofNative(MemorySegment segment) CreatesVkDescriptorPoolSizewith the given segment.static VkDescriptorPoolSizeofNative(MemorySegment segment, long count) CreatesVkDescriptorPoolSizewith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.inttype()Returnstype.type(int value) Setstypewith the given value.static inttype(MemorySegment segment, long index) Returnstypeat the given index.static voidtype(MemorySegment segment, long index, int value) Setstypewith the given value at the given index.inttypeAt(long index) Returnstypeat the given index.typeAt(long index, int value) Setstypewith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkDescriptorPoolSize. -
OFFSET_type
public static final long OFFSET_typeThe byte offset oftype. -
LAYOUT_type
The memory layout oftype. -
VH_type
-
OFFSET_descriptorCount
public static final long OFFSET_descriptorCountThe byte offset ofdescriptorCount. -
LAYOUT_descriptorCount
The memory layout ofdescriptorCount. -
VH_descriptorCount
-
-
Constructor Details
-
VkDescriptorPoolSize
CreatesVkDescriptorPoolSizewith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkDescriptorPoolSizewith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkDescriptorPoolSizewith 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
VkDescriptorPoolSizewith 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 aVkDescriptorPoolSizewith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkDescriptorPoolSize
-
alloc
Allocates aVkDescriptorPoolSizewith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkDescriptorPoolSize
-
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
-
type
Returnstypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
typeat the given index
-
type
public int type()Returnstype.- Returns:
type
-
type
Setstypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
type
Setstypewith 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 ofVkDescriptorPoolSize.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkDescriptorPoolSize
-
asSlice
Creates a slice ofVkDescriptorPoolSize.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkDescriptorPoolSize
-
at
VisitsVkDescriptorPoolSizebuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
typeAt
public int typeAt(long index) Returnstypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
typeat the given index
-
typeAt
Setstypewith 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
-