Class VkPhysicalDeviceMeshShaderFeaturesNV

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

public sealed class VkPhysicalDeviceMeshShaderFeaturesNV extends GroupType permits VkPhysicalDeviceMeshShaderFeaturesNV.Buffer

Layout

struct VkPhysicalDeviceMeshShaderFeaturesNV {
    (int) VkStructureType sType;
    void* pNext;
    (uint32_t) VkBool32 taskShader;
    (uint32_t) VkBool32 meshShader;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPhysicalDeviceMeshShaderFeaturesNV.
    • 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_taskShader

      public static final long OFFSET_taskShader
      The byte offset of taskShader.
    • LAYOUT_taskShader

      public static final MemoryLayout LAYOUT_taskShader
      The memory layout of taskShader.
    • VH_taskShader

      public static final VarHandle VH_taskShader
      The VarHandle of taskShader of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_meshShader

      public static final long OFFSET_meshShader
      The byte offset of meshShader.
    • LAYOUT_meshShader

      public static final MemoryLayout LAYOUT_meshShader
      The memory layout of meshShader.
    • VH_meshShader

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

    • VkPhysicalDeviceMeshShaderFeaturesNV

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

    • of

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

      public static VkPhysicalDeviceMeshShaderFeaturesNV ofNative(MemorySegment segment)

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

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

      public static VkPhysicalDeviceMeshShaderFeaturesNV.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkPhysicalDeviceMeshShaderFeaturesNV with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkPhysicalDeviceMeshShaderFeaturesNV
    • 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

      public VkPhysicalDeviceMeshShaderFeaturesNV sType(int value)
      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
    • taskShader

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

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

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

      public VkPhysicalDeviceMeshShaderFeaturesNV taskShader(int value)
      Sets taskShader with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • meshShader

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

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

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

      public VkPhysicalDeviceMeshShaderFeaturesNV meshShader(int value)
      Sets meshShader with the given value.
      Parameters:
      value - the value
      Returns:
      this