Record Class VkPerformanceCounterResultKHR
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkPerformanceCounterResultKHR
- All Implemented Interfaces:
IPointer
,IVkPerformanceCounterResultKHR
@ValueBasedCandidate
@UnsafeConstructor
public record VkPerformanceCounterResultKHR(@NotNull MemorySegment segment)
extends Record
implements IVkPerformanceCounterResultKHR
Represents a pointer to a VkPerformanceCounterResultKHR
structure in native memory.
Structure
typedef struct VkPerformanceCounterResultKHR {
int32
_t int32
;
int64
_t int64
;
uint32
_t uint32
;
uint64
_t uint64
;
float float32
;
double float64
;
} VkPerformanceCounterResultKHR;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkPerformanceCounterResultKHR
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final UnionLayout
static final ValueLayout.OfFloat
static final ValueLayout.OfDouble
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPerformanceCounterResultKHR
(@NotNull MemorySegment segment) Creates an instance of aVkPerformanceCounterResultKHR
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, VkPerformanceCounterResultKHR src) final boolean
Indicates whether some other object is "equal to" this one.float
float32()
float32
(float value) double
float64()
float64
(double value) final int
hashCode()
Returns a hash code value for this object.int
int32()
int32
(int value) long
int64()
int64
(long value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.int
uint32()
uint32
(int value) long
uint64()
uint64
(long value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$int32
-
PATH$int64
-
PATH$uint32
-
PATH$uint64
-
PATH$float32
-
PATH$float64
-
LAYOUT$int32
-
LAYOUT$int64
-
LAYOUT$uint32
-
LAYOUT$uint64
-
LAYOUT$float32
-
LAYOUT$float64
-
SIZE$int32
public static final long SIZE$int32 -
SIZE$int64
public static final long SIZE$int64 -
SIZE$uint32
public static final long SIZE$uint32 -
SIZE$uint64
public static final long SIZE$uint64 -
SIZE$float32
public static final long SIZE$float32 -
SIZE$float64
public static final long SIZE$float64 -
OFFSET$int32
public static final long OFFSET$int32 -
OFFSET$int64
public static final long OFFSET$int64 -
OFFSET$uint32
public static final long OFFSET$uint32 -
OFFSET$uint64
public static final long OFFSET$uint64 -
OFFSET$float32
public static final long OFFSET$float32 -
OFFSET$float64
public static final long OFFSET$float64
-
-
Constructor Details
-
VkPerformanceCounterResultKHR
Creates an instance of aVkPerformanceCounterResultKHR
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
int32
public int int32() -
int32
-
int64
public long int64() -
int64
-
uint32
-
uint32
-
uint64
-
uint64
-
float32
public float float32() -
float32
-
float64
public double float64() -
float64
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-