Class VkPerformanceValueINTEL
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.intel.struct.VkPerformanceValueINTEL
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkPerformanceValueINTEL.Buffer
public sealed class VkPerformanceValueINTEL
extends GroupType
permits VkPerformanceValueINTEL.Buffer
Layout
struct VkPerformanceValueINTEL {
(int) VkPerformanceValueTypeINTEL type;
(union VkPerformanceValueDataINTEL) VkPerformanceValueDataINTEL data;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkPerformanceValueINTEL
.static final MemoryLayout
The memory layout ofdata
.static final MemoryLayout
The memory layout oftype
.static final long
The byte offset ofdata
.static final long
The byte offset oftype
.static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkPerformanceValueINTEL
(MemorySegment segment) CreatesVkPerformanceValueINTEL
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPerformanceValueINTEL
alloc
(SegmentAllocator allocator) Allocates aVkPerformanceValueINTEL
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkPerformanceValueINTEL
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.data()
Returnsdata
.data
(MemorySegment value) Setsdata
with the given value.static MemorySegment
data
(MemorySegment segment, long index) Returnsdata
at the given index.static void
data
(MemorySegment segment, long index, MemorySegment value) Setsdata
with the given value at the given index.of
(MemorySegment segment) CreatesVkPerformanceValueINTEL
with the given segment.static VkPerformanceValueINTEL
ofNative
(MemorySegment segment) CreatesVkPerformanceValueINTEL
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkPerformanceValueINTEL
with the given segment.int
type()
Returnstype
.type
(int value) Setstype
with the given value.static int
type
(MemorySegment segment, long index) Returnstype
at the given index.static void
type
(MemorySegment segment, long index, int value) Setstype
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 ofVkPerformanceValueINTEL
. -
OFFSET_type
public static final long OFFSET_typeThe byte offset oftype
. -
LAYOUT_type
The memory layout oftype
. -
VH_type
-
OFFSET_data
public static final long OFFSET_dataThe byte offset ofdata
. -
LAYOUT_data
The memory layout ofdata
.
-
-
Constructor Details
-
VkPerformanceValueINTEL
CreatesVkPerformanceValueINTEL
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkPerformanceValueINTEL
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkPerformanceValueINTEL
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
VkPerformanceValueINTEL
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 aVkPerformanceValueINTEL
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkPerformanceValueINTEL
-
alloc
Allocates aVkPerformanceValueINTEL
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkPerformanceValueINTEL
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
type
Returnstype
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
type
at the given index
-
type
public int type()Returnstype
.- Returns:
type
-
type
Setstype
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
type
Setstype
with the given value.- Parameters:
value
- the value- Returns:
this
-
data
Returnsdata
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
data
at the given index
-
data
-
data
Setsdata
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
data
Setsdata
with the given value.- Parameters:
value
- the value- Returns:
this
-