Class VkPipelineFragmentShadingRateStateCreateInfoKHR

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

public sealed class VkPipelineFragmentShadingRateStateCreateInfoKHR extends GroupType permits VkPipelineFragmentShadingRateStateCreateInfoKHR.Buffer

Layout

struct VkPipelineFragmentShadingRateStateCreateInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    (struct VkExtent2D) VkExtent2D fragmentSize;
    (int) VkFragmentShadingRateCombinerOpKHR combinerOps[2];
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPipelineFragmentShadingRateStateCreateInfoKHR.
    • OFFSET_sType

      public static final long OFFSET_sType
      The byte offset of sType.
    • LAYOUT_sType

      public static final MemoryLayout LAYOUT_sType
      The memory layout of sType.
    • VH_sType

      public static final VarHandle VH_sType
      The VarHandle of sType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pNext

      public static final long OFFSET_pNext
      The byte offset of pNext.
    • LAYOUT_pNext

      public static final MemoryLayout LAYOUT_pNext
      The memory layout of pNext.
    • VH_pNext

      public static final VarHandle VH_pNext
      The VarHandle of pNext of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_fragmentSize

      public static final long OFFSET_fragmentSize
      The byte offset of fragmentSize.
    • LAYOUT_fragmentSize

      public static final MemoryLayout LAYOUT_fragmentSize
      The memory layout of fragmentSize.
    • OFFSET_combinerOps

      public static final long OFFSET_combinerOps
      The byte offset of combinerOps.
    • LAYOUT_combinerOps

      public static final MemoryLayout LAYOUT_combinerOps
      The memory layout of combinerOps.
    • VH_combinerOps

      public static final VarHandle VH_combinerOps
      The VarHandle of combinerOps of type (MemorySegment base, long baseOffset, long index, long index0)MemorySegment.
  • Constructor Details

    • VkPipelineFragmentShadingRateStateCreateInfoKHR

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

    • of

      Creates VkPipelineFragmentShadingRateStateCreateInfoKHR with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

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

      Creates VkPipelineFragmentShadingRateStateCreateInfoKHR 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

      Allocates a VkPipelineFragmentShadingRateStateCreateInfoKHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPipelineFragmentShadingRateStateCreateInfoKHR
    • alloc

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

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

      Converts this instance to a buffer.
      Returns:
      the buffer
    • sType

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

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

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

      Sets sType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pNext

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

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

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

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • fragmentSize

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

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

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

      Sets fragmentSize with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • combinerOps

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

      public static int combinerOps(MemorySegment segment, long index, long index0)
      Returns combinerOps at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      combinerOps at the given index
    • combinerOps

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

      public int combinerOps(long index0)
      Returns combinerOps.
      Parameters:
      index0 - the Index 0 of the array
      Returns:
      combinerOps
    • combinerOps

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

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

      Sets combinerOps with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • combinerOps

      public VkPipelineFragmentShadingRateStateCreateInfoKHR combinerOps(long index0, int value)
      Sets combinerOps with the given value.
      Parameters:
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this