Record Class VkPipelineExecutableStatisticValueKHR
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkPipelineExecutableStatisticValueKHR
- All Implemented Interfaces:
IPointer,IVkPipelineExecutableStatisticValueKHR
@ValueBasedCandidate
@UnsafeConstructor
public record VkPipelineExecutableStatisticValueKHR(@NotNull MemorySegment segment)
extends Record
implements IVkPipelineExecutableStatisticValueKHR
Represents a pointer to a VkPipelineExecutableStatisticValueKHR structure in native memory.
Structure
typedef union VkPipelineExecutableStatisticValueKHR {
VkBool32 b32;
int64_t i64;
uint64_t u64;
double f64;
} VkPipelineExecutableStatisticValueKHR;
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 ofVkPipelineExecutableStatisticValueKHRstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfDoublestatic final ValueLayout.OfLongstatic final ValueLayout.OfLongstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineExecutableStatisticValueKHR(@NotNull MemorySegment segment) Creates an instance of aVkPipelineExecutableStatisticValueKHRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintb32()b32(int value) clone(Arena arena, VkPipelineExecutableStatisticValueKHR src) final booleanIndicates whether some other object is "equal to" this one.doublef64()f64(double value) final inthashCode()Returns a hash code value for this object.longi64()i64(long value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.longu64()u64(long value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$b32
-
PATH$i64
-
PATH$u64
-
PATH$f64
-
LAYOUT$b32
-
LAYOUT$i64
-
LAYOUT$u64
-
LAYOUT$f64
-
SIZE$b32
public static final long SIZE$b32 -
SIZE$i64
public static final long SIZE$i64 -
SIZE$u64
public static final long SIZE$u64 -
SIZE$f64
public static final long SIZE$f64 -
OFFSET$b32
public static final long OFFSET$b32 -
OFFSET$i64
public static final long OFFSET$i64 -
OFFSET$u64
public static final long OFFSET$u64 -
OFFSET$f64
public static final long OFFSET$f64
-
-
Constructor Details
-
VkPipelineExecutableStatisticValueKHR
Creates an instance of aVkPipelineExecutableStatisticValueKHRrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPipelineExecutableStatisticValueKHR clone(Arena arena, VkPipelineExecutableStatisticValueKHR src) -
b32
-
b32
-
i64
public long i64() -
i64
-
u64
-
u64
-
f64
public double f64() -
f64
-
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.
-