Class VkPerformanceValueINTEL
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.intel.struct.VkPerformanceValueINTEL
- All Implemented Interfaces:
Addressable
Layout
struct VkPerformanceValueINTEL {
(int) VkPerformanceValueTypeINTEL type;
(union VkPerformanceValueDataINTEL) VkPerformanceValueDataINTEL data;
};
-
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, long elementCount) CreatesVkPerformanceValueINTEL
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPerformanceValueINTEL
alloc
(SegmentAllocator allocator) Allocates aVkPerformanceValueINTEL
with the given segment allocator.static VkPerformanceValueINTEL
alloc
(SegmentAllocator allocator, long count) Allocates aVkPerformanceValueINTEL
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkPerformanceValueINTEL
.asSlice
(long index, long count) Creates a slice ofVkPerformanceValueINTEL
.at
(long index, Consumer<VkPerformanceValueINTEL> func) VisitsVkPerformanceValueINTEL
buffer at the given index.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.Acceptsdata
with the given function.dataAt
(long index) Returnsdata
at the given index.dataAt
(long index, MemorySegment value) Setsdata
with the given value at the given index.dataAt
(long index, Consumer<VkPerformanceValueDataINTEL> func) Acceptsdata
with the given function.static VkPerformanceValueINTEL
of
(MemorySegment segment) CreatesVkPerformanceValueINTEL
with the given segment.static VkPerformanceValueINTEL
ofNative
(MemorySegment segment) CreatesVkPerformanceValueINTEL
with the given segment.static VkPerformanceValueINTEL
ofNative
(MemorySegment segment, long count) CreatesVkPerformanceValueINTEL
with the given segment.reinterpret
(long count) Reinterprets this buffer with the given count.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.int
typeAt
(long index) Returnstype
at the given index.typeAt
(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 segmentelementCount
- the element count of this struct buffer
-
-
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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted 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
-
data
Acceptsdata
with the given function.- Parameters:
func
- the function- Returns:
this
-
asSlice
Creates a slice ofVkPerformanceValueINTEL
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkPerformanceValueINTEL
-
asSlice
Creates a slice ofVkPerformanceValueINTEL
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkPerformanceValueINTEL
-
at
VisitsVkPerformanceValueINTEL
buffer 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) Returnstype
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
type
at the given index
-
typeAt
Setstype
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
dataAt
Returnsdata
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
data
at the given index
-
dataAt
Setsdata
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
dataAt
Acceptsdata
with the given function.- Parameters:
index
- the index of the struct bufferfunc
- the function- Returns:
this
-