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 union 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 recordRepresents a pointer to / an array ofVkPerformanceCounterResultKHRstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final UnionLayoutstatic final ValueLayout.OfFloatstatic final ValueLayout.OfDoublestatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPerformanceCounterResultKHR(@NotNull MemorySegment segment) Creates an instance of aVkPerformanceCounterResultKHRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, VkPerformanceCounterResultKHR src) final booleanIndicates whether some other object is "equal to" this one.floatfloat32()float32(float value) doublefloat64()float64(double value) final inthashCode()Returns a hash code value for this object.intint32()int32(int value) longint64()int64(long value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.intuint32()uint32(int value) longuint64()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 aVkPerformanceCounterResultKHRrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-