Class VkPerformanceValueINTEL
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.intel.struct.VkPerformanceValueINTEL
- All Implemented Interfaces:
Addressable
Represents VkPerformanceValueINTEL.
Layout
struct VkPerformanceValueINTEL {
(int) VkPerformanceValueTypeINTEL type;
(union VkPerformanceValueDataINTEL) VkPerformanceValueDataINTEL data;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkPerformanceValueINTEL.static final MemoryLayoutThe memory layout ofdata.static final MemoryLayoutThe memory layout oftype.static final longThe byte offset ofdata.static final longThe byte offset oftype.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkPerformanceValueINTEL(MemorySegment segment, long elementCount) CreatesVkPerformanceValueINTELwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPerformanceValueINTELalloc(SegmentAllocator allocator) Allocates aVkPerformanceValueINTELwith the given segment allocator.static VkPerformanceValueINTELalloc(SegmentAllocator allocator, long count) Allocates aVkPerformanceValueINTELwith 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) VisitsVkPerformanceValueINTELbuffer at the given index.Copies from the given source.data()Returnsdata.data(MemorySegment value) Setsdatawith the given value.static MemorySegmentdata(MemorySegment segment, long index) Returnsdataat the given index.static voiddata(MemorySegment segment, long index, MemorySegment value) Setsdatawith the given value at the given index.Acceptsdatawith the given function.dataAt(long index) Returnsdataat the given index.dataAt(long index, MemorySegment value) Setsdatawith the given value at the given index.dataAt(long index, Consumer<VkPerformanceValueDataINTEL> func) Acceptsdatawith the given function.static VkPerformanceValueINTELof(MemorySegment segment) CreatesVkPerformanceValueINTELwith the given segment.static VkPerformanceValueINTELofNative(MemorySegment segment) CreatesVkPerformanceValueINTELwith the given segment.static VkPerformanceValueINTELofNative(MemorySegment segment, long count) CreatesVkPerformanceValueINTELwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.inttype()Returnstype.type(int value) Setstypewith the given value.static inttype(MemorySegment segment, long index) Returnstypeat the given index.static voidtype(MemorySegment segment, long index, int value) Setstypewith the given value at the given index.inttypeAt(long index) Returnstypeat the given index.typeAt(long index, int value) Setstypewith the given value at the given index.Methods inherited from class 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
CreatesVkPerformanceValueINTELwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkPerformanceValueINTELwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPerformanceValueINTELwith 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
VkPerformanceValueINTELwith 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 aVkPerformanceValueINTELwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkPerformanceValueINTEL
-
alloc
Allocates aVkPerformanceValueINTELwith 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
Returnstypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
typeat the given index
-
type
public int type()Returnstype.- Returns:
type
-
type
Setstypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
type
Setstypewith the given value.- Parameters:
value- the value- Returns:
this
-
data
Returnsdataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dataat the given index
-
data
-
data
Setsdatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
data
Setsdatawith the given value.- Parameters:
value- the value- Returns:
this
-
data
Acceptsdatawith 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
VisitsVkPerformanceValueINTELbuffer 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) Returnstypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
typeat the given index
-
typeAt
Setstypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
dataAt
Returnsdataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dataat the given index
-
dataAt
Setsdatawith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
dataAt
Acceptsdatawith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-