Class VkBufferUsageFlags2CreateInfoKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkBufferUsageFlags2CreateInfoKHR
- All Implemented Interfaces:
Addressable
Represents VkBufferUsageFlags2CreateInfoKHR.
Layout
struct VkBufferUsageFlags2CreateInfoKHR {
(int) VkStructureType sType;
const void* pNext;
((uint64_t) VkFlags64) VkBufferUsageFlags2 usage;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkBufferUsageFlags2CreateInfoKHR.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout ofusage.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final longThe byte offset ofusage.static final VarHandlestatic final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkBufferUsageFlags2CreateInfoKHR(MemorySegment segment, long elementCount) CreatesVkBufferUsageFlags2CreateInfoKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkBufferUsageFlags2CreateInfoKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkBufferUsageFlags2CreateInfoKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkBufferUsageFlags2CreateInfoKHR.asSlice(long index, long count) Creates a slice ofVkBufferUsageFlags2CreateInfoKHR.at(long index, Consumer<VkBufferUsageFlags2CreateInfoKHR> func) VisitsVkBufferUsageFlags2CreateInfoKHRbuffer at the given index.Copies from the given source.of(MemorySegment segment) CreatesVkBufferUsageFlags2CreateInfoKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkBufferUsageFlags2CreateInfoKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkBufferUsageFlags2CreateInfoKHRwith 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.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.longusage()Returnsusage.usage(long value) Setsusagewith the given value.static longusage(MemorySegment segment, long index) Returnsusageat the given index.static voidusage(MemorySegment segment, long index, long value) Setsusagewith the given value at the given index.longusageAt(long index) Returnsusageat the given index.usageAt(long index, long value) Setsusagewith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkBufferUsageFlags2CreateInfoKHR. -
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_usage
public static final long OFFSET_usageThe byte offset ofusage. -
LAYOUT_usage
The memory layout ofusage. -
VH_usage
-
-
Constructor Details
-
VkBufferUsageFlags2CreateInfoKHR
CreatesVkBufferUsageFlags2CreateInfoKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkBufferUsageFlags2CreateInfoKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkBufferUsageFlags2CreateInfoKHRwith 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
VkBufferUsageFlags2CreateInfoKHRwith 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 aVkBufferUsageFlags2CreateInfoKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkBufferUsageFlags2CreateInfoKHR
-
alloc
Allocates aVkBufferUsageFlags2CreateInfoKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkBufferUsageFlags2CreateInfoKHR
-
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
-
usage
Returnsusageat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
usageat the given index
-
usage
public long usage()Returnsusage.- Returns:
usage
-
usage
Setsusagewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
usage
Setsusagewith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkBufferUsageFlags2CreateInfoKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkBufferUsageFlags2CreateInfoKHR
-
asSlice
Creates a slice ofVkBufferUsageFlags2CreateInfoKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkBufferUsageFlags2CreateInfoKHR
-
at
public VkBufferUsageFlags2CreateInfoKHR at(long index, Consumer<VkBufferUsageFlags2CreateInfoKHR> func) VisitsVkBufferUsageFlags2CreateInfoKHRbuffer 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
-
usageAt
public long usageAt(long index) Returnsusageat the given index.- Parameters:
index- the index of the struct buffer- Returns:
usageat the given index
-
usageAt
Setsusagewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-