Class VkPipelineCreationFeedbackEXT

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.ext.struct.VkPipelineCreationFeedbackEXT
All Implemented Interfaces:
Addressable

public final class VkPipelineCreationFeedbackEXT extends GroupType

Layout

struct VkPipelineCreationFeedbackEXT {
    ((uint32_t) VkFlags) VkPipelineCreationFeedbackFlags flags;
    uint64_t duration;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPipelineCreationFeedbackEXT.
    • OFFSET_flags

      public static final long OFFSET_flags
      The byte offset of flags.
    • LAYOUT_flags

      public static final MemoryLayout LAYOUT_flags
      The memory layout of flags.
    • VH_flags

      public static final VarHandle VH_flags
      The VarHandle of flags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_duration

      public static final long OFFSET_duration
      The byte offset of duration.
    • LAYOUT_duration

      public static final MemoryLayout LAYOUT_duration
      The memory layout of duration.
    • VH_duration

      public static final VarHandle VH_duration
      The VarHandle of duration of type (MemorySegment base, long baseOffset, long index)MemorySegment.
  • Constructor Details

    • VkPipelineCreationFeedbackEXT

      public VkPipelineCreationFeedbackEXT(MemorySegment segment, long elementCount)
      Creates VkPipelineCreationFeedbackEXT with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

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

      public static VkPipelineCreationFeedbackEXT ofNative(MemorySegment segment)

      Creates VkPipelineCreationFeedbackEXT 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 VkPipelineCreationFeedbackEXT ofNative(MemorySegment segment, long count)

      Creates VkPipelineCreationFeedbackEXT 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 VkPipelineCreationFeedbackEXT alloc(SegmentAllocator allocator)
      Allocates a VkPipelineCreationFeedbackEXT with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPipelineCreationFeedbackEXT
    • alloc

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

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

      public VkPipelineCreationFeedbackEXT reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • flags

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

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

      public static void flags(MemorySegment segment, long index, int value)
      Sets flags 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
    • flags

      public VkPipelineCreationFeedbackEXT flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • duration

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

      public long duration()
      Returns duration.
      Returns:
      duration
    • duration

      public static void duration(MemorySegment segment, long index, long value)
      Sets duration 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
    • duration

      public VkPipelineCreationFeedbackEXT duration(long value)
      Sets duration with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

      public VkPipelineCreationFeedbackEXT asSlice(long index)
      Creates a slice of VkPipelineCreationFeedbackEXT.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkPipelineCreationFeedbackEXT
    • asSlice

      public VkPipelineCreationFeedbackEXT asSlice(long index, long count)
      Creates a slice of VkPipelineCreationFeedbackEXT.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkPipelineCreationFeedbackEXT
    • at

      Visits VkPipelineCreationFeedbackEXT buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • flagsAt

      public int flagsAt(long index)
      Returns flags at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      flags at the given index
    • flagsAt

      public VkPipelineCreationFeedbackEXT flagsAt(long index, int value)
      Sets flags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • durationAt

      public long durationAt(long index)
      Returns duration at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      duration at the given index
    • durationAt

      public VkPipelineCreationFeedbackEXT durationAt(long index, long value)
      Sets duration with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this