Class VkConformanceVersionKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkConformanceVersionKHR
- All Implemented Interfaces:
Addressable
Represents VkConformanceVersionKHR.
Layout
struct VkConformanceVersionKHR {
uint8_t major;
uint8_t minor;
uint8_t subminor;
uint8_t patch;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkConformanceVersionKHR.static final MemoryLayoutThe memory layout ofmajor.static final MemoryLayoutThe memory layout ofminor.static final MemoryLayoutThe memory layout ofpatch.static final MemoryLayoutThe memory layout ofsubminor.static final longThe byte offset ofmajor.static final longThe byte offset ofminor.static final longThe byte offset ofpatch.static final longThe byte offset ofsubminor.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkConformanceVersionKHR(MemorySegment segment, long elementCount) CreatesVkConformanceVersionKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkConformanceVersionKHRalloc(SegmentAllocator allocator) Allocates aVkConformanceVersionKHRwith the given segment allocator.static VkConformanceVersionKHRalloc(SegmentAllocator allocator, long count) Allocates aVkConformanceVersionKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkConformanceVersionKHR.asSlice(long index, long count) Creates a slice ofVkConformanceVersionKHR.at(long index, Consumer<VkConformanceVersionKHR> func) VisitsVkConformanceVersionKHRbuffer at the given index.Copies from the given source.bytemajor()Returnsmajor.major(byte value) Setsmajorwith the given value.static bytemajor(MemorySegment segment, long index) Returnsmajorat the given index.static voidmajor(MemorySegment segment, long index, byte value) Setsmajorwith the given value at the given index.bytemajorAt(long index) Returnsmajorat the given index.majorAt(long index, byte value) Setsmajorwith the given value at the given index.byteminor()Returnsminor.minor(byte value) Setsminorwith the given value.static byteminor(MemorySegment segment, long index) Returnsminorat the given index.static voidminor(MemorySegment segment, long index, byte value) Setsminorwith the given value at the given index.byteminorAt(long index) Returnsminorat the given index.minorAt(long index, byte value) Setsminorwith the given value at the given index.static VkConformanceVersionKHRof(MemorySegment segment) CreatesVkConformanceVersionKHRwith the given segment.static VkConformanceVersionKHRofNative(MemorySegment segment) CreatesVkConformanceVersionKHRwith the given segment.static VkConformanceVersionKHRofNative(MemorySegment segment, long count) CreatesVkConformanceVersionKHRwith the given segment.bytepatch()Returnspatch.patch(byte value) Setspatchwith the given value.static bytepatch(MemorySegment segment, long index) Returnspatchat the given index.static voidpatch(MemorySegment segment, long index, byte value) Setspatchwith the given value at the given index.bytepatchAt(long index) Returnspatchat the given index.patchAt(long index, byte value) Setspatchwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.bytesubminor()Returnssubminor.subminor(byte value) Setssubminorwith the given value.static bytesubminor(MemorySegment segment, long index) Returnssubminorat the given index.static voidsubminor(MemorySegment segment, long index, byte value) Setssubminorwith the given value at the given index.bytesubminorAt(long index) Returnssubminorat the given index.subminorAt(long index, byte value) Setssubminorwith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkConformanceVersionKHR. -
OFFSET_major
public static final long OFFSET_majorThe byte offset ofmajor. -
LAYOUT_major
The memory layout ofmajor. -
VH_major
-
OFFSET_minor
public static final long OFFSET_minorThe byte offset ofminor. -
LAYOUT_minor
The memory layout ofminor. -
VH_minor
-
OFFSET_subminor
public static final long OFFSET_subminorThe byte offset ofsubminor. -
LAYOUT_subminor
The memory layout ofsubminor. -
VH_subminor
-
OFFSET_patch
public static final long OFFSET_patchThe byte offset ofpatch. -
LAYOUT_patch
The memory layout ofpatch. -
VH_patch
-
-
Constructor Details
-
VkConformanceVersionKHR
CreatesVkConformanceVersionKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkConformanceVersionKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkConformanceVersionKHRwith 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
VkConformanceVersionKHRwith 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 aVkConformanceVersionKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkConformanceVersionKHR
-
alloc
Allocates aVkConformanceVersionKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkConformanceVersionKHR
-
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
-
major
Returnsmajorat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
majorat the given index
-
major
public byte major()Returnsmajor.- Returns:
major
-
major
Setsmajorwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
major
Setsmajorwith the given value.- Parameters:
value- the value- Returns:
this
-
minor
Returnsminorat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
minorat the given index
-
minor
public byte minor()Returnsminor.- Returns:
minor
-
minor
Setsminorwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
minor
Setsminorwith the given value.- Parameters:
value- the value- Returns:
this
-
subminor
Returnssubminorat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
subminorat the given index
-
subminor
public byte subminor()Returnssubminor.- Returns:
subminor
-
subminor
Setssubminorwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
subminor
Setssubminorwith the given value.- Parameters:
value- the value- Returns:
this
-
patch
Returnspatchat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
patchat the given index
-
patch
public byte patch()Returnspatch.- Returns:
patch
-
patch
Setspatchwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
patch
Setspatchwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkConformanceVersionKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkConformanceVersionKHR
-
asSlice
Creates a slice ofVkConformanceVersionKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkConformanceVersionKHR
-
at
VisitsVkConformanceVersionKHRbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
majorAt
public byte majorAt(long index) Returnsmajorat the given index.- Parameters:
index- the index of the struct buffer- Returns:
majorat the given index
-
majorAt
Setsmajorwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
minorAt
public byte minorAt(long index) Returnsminorat the given index.- Parameters:
index- the index of the struct buffer- Returns:
minorat the given index
-
minorAt
Setsminorwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
subminorAt
public byte subminorAt(long index) Returnssubminorat the given index.- Parameters:
index- the index of the struct buffer- Returns:
subminorat the given index
-
subminorAt
Setssubminorwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
patchAt
public byte patchAt(long index) Returnspatchat the given index.- Parameters:
index- the index of the struct buffer- Returns:
patchat the given index
-
patchAt
Setspatchwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-