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 struct 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 record
Represents a pointer to / an array ofVkPipelineExecutableStatisticValueKHR
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final UnionLayout
static final ValueLayout.OfInt
static final ValueLayout.OfDouble
static final ValueLayout.OfLong
static final ValueLayout.OfLong
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 long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPipelineExecutableStatisticValueKHR
(@NotNull MemorySegment segment) Creates an instance of aVkPipelineExecutableStatisticValueKHR
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
b32()
b32
(int value) clone
(Arena arena, VkPipelineExecutableStatisticValueKHR src) final boolean
Indicates whether some other object is "equal to" this one.double
f64()
f64
(double value) final int
hashCode()
Returns a hash code value for this object.long
i64()
i64
(long value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.long
u64()
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 aVkPipelineExecutableStatisticValueKHR
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-