Class VkConformanceVersionKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkConformanceVersionKHR
- All Implemented Interfaces:
Addressable
Layout
struct VkConformanceVersionKHR {
uint8_t major;
uint8_t minor;
uint8_t subminor;
uint8_t patch;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkConformanceVersionKHR
.static final MemoryLayout
The memory layout ofmajor
.static final MemoryLayout
The memory layout ofminor
.static final MemoryLayout
The memory layout ofpatch
.static final MemoryLayout
The memory layout ofsubminor
.static final long
The byte offset ofmajor
.static final long
The byte offset ofminor
.static final long
The byte offset ofpatch
.static final long
The byte offset ofsubminor
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkConformanceVersionKHR
(MemorySegment segment, long elementCount) CreatesVkConformanceVersionKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkConformanceVersionKHR
alloc
(SegmentAllocator allocator) Allocates aVkConformanceVersionKHR
with the given segment allocator.static VkConformanceVersionKHR
alloc
(SegmentAllocator allocator, long count) Allocates aVkConformanceVersionKHR
with 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) VisitsVkConformanceVersionKHR
buffer at the given index.Copies from the given source.byte
major()
Returnsmajor
.major
(byte value) Setsmajor
with the given value.static byte
major
(MemorySegment segment, long index) Returnsmajor
at the given index.static void
major
(MemorySegment segment, long index, byte value) Setsmajor
with the given value at the given index.byte
majorAt
(long index) Returnsmajor
at the given index.majorAt
(long index, byte value) Setsmajor
with the given value at the given index.byte
minor()
Returnsminor
.minor
(byte value) Setsminor
with the given value.static byte
minor
(MemorySegment segment, long index) Returnsminor
at the given index.static void
minor
(MemorySegment segment, long index, byte value) Setsminor
with the given value at the given index.byte
minorAt
(long index) Returnsminor
at the given index.minorAt
(long index, byte value) Setsminor
with the given value at the given index.static VkConformanceVersionKHR
of
(MemorySegment segment) CreatesVkConformanceVersionKHR
with the given segment.static VkConformanceVersionKHR
ofNative
(MemorySegment segment) CreatesVkConformanceVersionKHR
with the given segment.static VkConformanceVersionKHR
ofNative
(MemorySegment segment, long count) CreatesVkConformanceVersionKHR
with the given segment.byte
patch()
Returnspatch
.patch
(byte value) Setspatch
with the given value.static byte
patch
(MemorySegment segment, long index) Returnspatch
at the given index.static void
patch
(MemorySegment segment, long index, byte value) Setspatch
with the given value at the given index.byte
patchAt
(long index) Returnspatch
at the given index.patchAt
(long index, byte value) Setspatch
with the given value at the given index.reinterpret
(long count) Reinterprets this buffer with the given count.byte
subminor()
Returnssubminor
.subminor
(byte value) Setssubminor
with the given value.static byte
subminor
(MemorySegment segment, long index) Returnssubminor
at the given index.static void
subminor
(MemorySegment segment, long index, byte value) Setssubminor
with the given value at the given index.byte
subminorAt
(long index) Returnssubminor
at the given index.subminorAt
(long index, byte value) Setssubminor
with the given value at the given index.Methods inherited from class overrungl.struct.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
CreatesVkConformanceVersionKHR
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkConformanceVersionKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkConformanceVersionKHR
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkConformanceVersionKHR
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkConformanceVersionKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkConformanceVersionKHR
-
alloc
Allocates aVkConformanceVersionKHR
with 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
Returnsmajor
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
major
at the given index
-
major
public byte major()Returnsmajor
.- Returns:
major
-
major
Setsmajor
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
major
Setsmajor
with the given value.- Parameters:
value
- the value- Returns:
this
-
minor
Returnsminor
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
minor
at the given index
-
minor
public byte minor()Returnsminor
.- Returns:
minor
-
minor
Setsminor
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
minor
Setsminor
with the given value.- Parameters:
value
- the value- Returns:
this
-
subminor
Returnssubminor
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
subminor
at the given index
-
subminor
public byte subminor()Returnssubminor
.- Returns:
subminor
-
subminor
Setssubminor
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
subminor
Setssubminor
with the given value.- Parameters:
value
- the value- Returns:
this
-
patch
Returnspatch
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
patch
at the given index
-
patch
public byte patch()Returnspatch
.- Returns:
patch
-
patch
Setspatch
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
patch
Setspatch
with 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
VisitsVkConformanceVersionKHR
buffer 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) Returnsmajor
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
major
at the given index
-
majorAt
Setsmajor
with 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) Returnsminor
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
minor
at the given index
-
minorAt
Setsminor
with 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) Returnssubminor
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
subminor
at the given index
-
subminorAt
Setssubminor
with 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) Returnspatch
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
patch
at the given index
-
patchAt
Setspatch
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-