Class VkPushDescriptorSetInfo

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

public sealed class VkPushDescriptorSetInfo extends GroupType permits VkPushDescriptorSetInfo.Buffer

Layout

struct VkPushDescriptorSetInfo {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkShaderStageFlags stageFlags;
    (uint64_t) VkPipelineLayout layout;
    uint32_t set;
    uint32_t descriptorWriteCount;
    const VkWriteDescriptorSet* pDescriptorWrites;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_set
      The byte offset of set.
    • LAYOUT_set

      public static final MemoryLayout LAYOUT_set
      The memory layout of set.
    • VH_set

      public static final VarHandle VH_set
      The VarHandle of set of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_descriptorWriteCount

      public static final long OFFSET_descriptorWriteCount
      The byte offset of descriptorWriteCount.
    • LAYOUT_descriptorWriteCount

      public static final MemoryLayout LAYOUT_descriptorWriteCount
      The memory layout of descriptorWriteCount.
    • VH_descriptorWriteCount

      public static final VarHandle VH_descriptorWriteCount
      The VarHandle of descriptorWriteCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pDescriptorWrites

      public static final long OFFSET_pDescriptorWrites
      The byte offset of pDescriptorWrites.
    • LAYOUT_pDescriptorWrites

      public static final MemoryLayout LAYOUT_pDescriptorWrites
      The memory layout of pDescriptorWrites.
    • VH_pDescriptorWrites

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

    • VkPushDescriptorSetInfo

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

    • of

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

      public static VkPushDescriptorSetInfo ofNative(MemorySegment segment)

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

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

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

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

      public VkPushDescriptorSetInfo.Buffer 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 VkPushDescriptorSetInfo 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

      public VkPushDescriptorSetInfo pNext(MemorySegment value)
      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 VkPushDescriptorSetInfo 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 VkPushDescriptorSetInfo layout(long value)
      Sets layout with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • set

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

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

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

      public VkPushDescriptorSetInfo set(int value)
      Sets set with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • descriptorWriteCount

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

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

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

      public VkPushDescriptorSetInfo descriptorWriteCount(int value)
      Sets descriptorWriteCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pDescriptorWrites

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

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

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

      public VkPushDescriptorSetInfo pDescriptorWrites(MemorySegment value)
      Sets pDescriptorWrites with the given value.
      Parameters:
      value - the value
      Returns:
      this