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:
  • Field Details

    • LAYOUT

      public static final UnionLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$int32

      public static final MemoryLayout.PathElement PATH$int32
    • PATH$int64

      public static final MemoryLayout.PathElement PATH$int64
    • PATH$uint32

      public static final MemoryLayout.PathElement PATH$uint32
    • PATH$uint64

      public static final MemoryLayout.PathElement PATH$uint64
    • PATH$float32

      public static final MemoryLayout.PathElement PATH$float32
    • PATH$float64

      public static final MemoryLayout.PathElement PATH$float64
    • LAYOUT$int32

      public static final ValueLayout.OfInt LAYOUT$int32
    • LAYOUT$int64

      public static final ValueLayout.OfLong LAYOUT$int64
    • LAYOUT$uint32

      public static final ValueLayout.OfInt LAYOUT$uint32
    • LAYOUT$uint64

      public static final ValueLayout.OfLong LAYOUT$uint64
    • LAYOUT$float32

      public static final ValueLayout.OfFloat LAYOUT$float32
    • LAYOUT$float64

      public static final ValueLayout.OfDouble 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

      public VkPerformanceCounterResultKHR(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a VkPerformanceCounterResultKHR record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details