Class VkBindDescriptorSetsInfo

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

public sealed class VkBindDescriptorSetsInfo extends GroupType permits VkBindDescriptorSetsInfo.Buffer

Layout

struct VkBindDescriptorSetsInfo {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkShaderStageFlags stageFlags;
    (uint64_t) VkPipelineLayout layout;
    uint32_t firstSet;
    uint32_t descriptorSetCount;
    const VkDescriptorSet* pDescriptorSets;
    uint32_t dynamicOffsetCount;
    const uint32_t* pDynamicOffsets;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_stageFlags
      The byte offset of stageFlags.
    • LAYOUT_stageFlags

      public static final MemoryLayout LAYOUT_stageFlags
      The memory layout of stageFlags.
    • VH_stageFlags

      public static final VarHandle VH_stageFlags
      The VarHandle of stageFlags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_layout

      public static final long OFFSET_layout
      The byte offset of layout.
    • LAYOUT_layout

      public static final MemoryLayout LAYOUT_layout
      The memory layout of layout.
    • VH_layout

      public static final VarHandle VH_layout
      The VarHandle of layout of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_firstSet

      public static final long OFFSET_firstSet
      The byte offset of firstSet.
    • LAYOUT_firstSet

      public static final MemoryLayout LAYOUT_firstSet
      The memory layout of firstSet.
    • VH_firstSet

      public static final VarHandle VH_firstSet
      The VarHandle of firstSet of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_descriptorSetCount

      public static final long OFFSET_descriptorSetCount
      The byte offset of descriptorSetCount.
    • LAYOUT_descriptorSetCount

      public static final MemoryLayout LAYOUT_descriptorSetCount
      The memory layout of descriptorSetCount.
    • VH_descriptorSetCount

      public static final VarHandle VH_descriptorSetCount
      The VarHandle of descriptorSetCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pDescriptorSets

      public static final long OFFSET_pDescriptorSets
      The byte offset of pDescriptorSets.
    • LAYOUT_pDescriptorSets

      public static final MemoryLayout LAYOUT_pDescriptorSets
      The memory layout of pDescriptorSets.
    • VH_pDescriptorSets

      public static final VarHandle VH_pDescriptorSets
      The VarHandle of pDescriptorSets of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dynamicOffsetCount

      public static final long OFFSET_dynamicOffsetCount
      The byte offset of dynamicOffsetCount.
    • LAYOUT_dynamicOffsetCount

      public static final MemoryLayout LAYOUT_dynamicOffsetCount
      The memory layout of dynamicOffsetCount.
    • VH_dynamicOffsetCount

      public static final VarHandle VH_dynamicOffsetCount
      The VarHandle of dynamicOffsetCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pDynamicOffsets

      public static final long OFFSET_pDynamicOffsets
      The byte offset of pDynamicOffsets.
    • LAYOUT_pDynamicOffsets

      public static final MemoryLayout LAYOUT_pDynamicOffsets
      The memory layout of pDynamicOffsets.
    • VH_pDynamicOffsets

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

    • VkBindDescriptorSetsInfo

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

    • of

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

      public static VkBindDescriptorSetsInfo ofNative(MemorySegment segment)

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

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

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

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

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

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

      public VkBindDescriptorSetsInfo stageFlags(int value)
      Sets stageFlags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • layout

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

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

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

      public VkBindDescriptorSetsInfo layout(long value)
      Sets layout with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • firstSet

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

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

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

      public VkBindDescriptorSetsInfo firstSet(int value)
      Sets firstSet with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • descriptorSetCount

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

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

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

      public VkBindDescriptorSetsInfo descriptorSetCount(int value)
      Sets descriptorSetCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pDescriptorSets

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

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

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

      public VkBindDescriptorSetsInfo pDescriptorSets(MemorySegment value)
      Sets pDescriptorSets with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dynamicOffsetCount

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

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

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

      public VkBindDescriptorSetsInfo dynamicOffsetCount(int value)
      Sets dynamicOffsetCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pDynamicOffsets

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

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

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

      public VkBindDescriptorSetsInfo pDynamicOffsets(MemorySegment value)
      Sets pDynamicOffsets with the given value.
      Parameters:
      value - the value
      Returns:
      this