Class VkPerformanceValueINTEL

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.intel.struct.VkPerformanceValueINTEL
All Implemented Interfaces:
Addressable
Direct Known Subclasses:
VkPerformanceValueINTEL.Buffer

public sealed class VkPerformanceValueINTEL extends GroupType permits VkPerformanceValueINTEL.Buffer

Layout

struct VkPerformanceValueINTEL {
    (int) VkPerformanceValueTypeINTEL type;
    (union VkPerformanceValueDataINTEL) VkPerformanceValueDataINTEL data;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPerformanceValueINTEL.
    • OFFSET_type

      public static final long OFFSET_type
      The byte offset of type.
    • LAYOUT_type

      public static final MemoryLayout LAYOUT_type
      The memory layout of type.
    • VH_type

      public static final VarHandle VH_type
      The VarHandle of type of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_data

      public static final long OFFSET_data
      The byte offset of data.
    • LAYOUT_data

      public static final MemoryLayout LAYOUT_data
      The memory layout of data.
  • Constructor Details

    • VkPerformanceValueINTEL

      public VkPerformanceValueINTEL(MemorySegment segment)
      Creates VkPerformanceValueINTEL with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      public static VkPerformanceValueINTEL.Buffer of(MemorySegment segment)
      Creates VkPerformanceValueINTEL with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkPerformanceValueINTEL ofNative(MemorySegment segment)

      Creates VkPerformanceValueINTEL with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkPerformanceValueINTEL.Buffer ofNative(MemorySegment segment, long count)

      Creates VkPerformanceValueINTEL with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      count - the count of the buffer
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      public static VkPerformanceValueINTEL alloc(SegmentAllocator allocator)
      Allocates a VkPerformanceValueINTEL with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPerformanceValueINTEL
    • alloc

      public static VkPerformanceValueINTEL.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkPerformanceValueINTEL with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkPerformanceValueINTEL
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • asBuffer

      public VkPerformanceValueINTEL.Buffer asBuffer()
      Converts this instance to a buffer.
      Returns:
      the buffer
    • type

      public static int type(MemorySegment segment, long index)
      Returns type at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      type at the given index
    • type

      public int type()
      Returns type.
      Returns:
      type
    • type

      public static void type(MemorySegment segment, long index, int value)
      Sets type with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • type

      public VkPerformanceValueINTEL type(int value)
      Sets type with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • data

      public static MemorySegment data(MemorySegment segment, long index)
      Returns data at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      data at the given index
    • data

      public MemorySegment data()
      Returns data.
      Returns:
      data
    • data

      public static void data(MemorySegment segment, long index, MemorySegment value)
      Sets data with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • data

      Sets data with the given value.
      Parameters:
      value - the value
      Returns:
      this