Class VkGraphicsShaderGroupCreateInfoNV

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

public sealed class VkGraphicsShaderGroupCreateInfoNV extends GroupType permits VkGraphicsShaderGroupCreateInfoNV.Buffer

Layout

struct VkGraphicsShaderGroupCreateInfoNV {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t stageCount;
    const VkPipelineShaderStageCreateInfo* pStages;
    const VkPipelineVertexInputStateCreateInfo* pVertexInputState;
    const VkPipelineTessellationStateCreateInfo* pTessellationState;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_stageCount
      The byte offset of stageCount.
    • LAYOUT_stageCount

      public static final MemoryLayout LAYOUT_stageCount
      The memory layout of stageCount.
    • VH_stageCount

      public static final VarHandle VH_stageCount
      The VarHandle of stageCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pStages

      public static final long OFFSET_pStages
      The byte offset of pStages.
    • LAYOUT_pStages

      public static final MemoryLayout LAYOUT_pStages
      The memory layout of pStages.
    • VH_pStages

      public static final VarHandle VH_pStages
      The VarHandle of pStages of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pVertexInputState

      public static final long OFFSET_pVertexInputState
      The byte offset of pVertexInputState.
    • LAYOUT_pVertexInputState

      public static final MemoryLayout LAYOUT_pVertexInputState
      The memory layout of pVertexInputState.
    • VH_pVertexInputState

      public static final VarHandle VH_pVertexInputState
      The VarHandle of pVertexInputState of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pTessellationState

      public static final long OFFSET_pTessellationState
      The byte offset of pTessellationState.
    • LAYOUT_pTessellationState

      public static final MemoryLayout LAYOUT_pTessellationState
      The memory layout of pTessellationState.
    • VH_pTessellationState

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

    • VkGraphicsShaderGroupCreateInfoNV

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

    • of

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

      public static VkGraphicsShaderGroupCreateInfoNV ofNative(MemorySegment segment)

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

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

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

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

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

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

      public VkGraphicsShaderGroupCreateInfoNV stageCount(int value)
      Sets stageCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pStages

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

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

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

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

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

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

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

      public VkGraphicsShaderGroupCreateInfoNV pVertexInputState(MemorySegment value)
      Sets pVertexInputState with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pTessellationState

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

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

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

      public VkGraphicsShaderGroupCreateInfoNV pTessellationState(MemorySegment value)
      Sets pTessellationState with the given value.
      Parameters:
      value - the value
      Returns:
      this