Class VkCopyDescriptorSet

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

public sealed class VkCopyDescriptorSet extends GroupType permits VkCopyDescriptorSet.Buffer

Layout

struct VkCopyDescriptorSet {
    (int) VkStructureType sType;
    const void* pNext;
    (uint64_t) VkDescriptorSet srcSet;
    uint32_t srcBinding;
    uint32_t srcArrayElement;
    (uint64_t) VkDescriptorSet dstSet;
    uint32_t dstBinding;
    uint32_t dstArrayElement;
    uint32_t descriptorCount;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_srcSet
      The byte offset of srcSet.
    • LAYOUT_srcSet

      public static final MemoryLayout LAYOUT_srcSet
      The memory layout of srcSet.
    • VH_srcSet

      public static final VarHandle VH_srcSet
      The VarHandle of srcSet of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_srcBinding

      public static final long OFFSET_srcBinding
      The byte offset of srcBinding.
    • LAYOUT_srcBinding

      public static final MemoryLayout LAYOUT_srcBinding
      The memory layout of srcBinding.
    • VH_srcBinding

      public static final VarHandle VH_srcBinding
      The VarHandle of srcBinding of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_srcArrayElement

      public static final long OFFSET_srcArrayElement
      The byte offset of srcArrayElement.
    • LAYOUT_srcArrayElement

      public static final MemoryLayout LAYOUT_srcArrayElement
      The memory layout of srcArrayElement.
    • VH_srcArrayElement

      public static final VarHandle VH_srcArrayElement
      The VarHandle of srcArrayElement of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dstSet

      public static final long OFFSET_dstSet
      The byte offset of dstSet.
    • LAYOUT_dstSet

      public static final MemoryLayout LAYOUT_dstSet
      The memory layout of dstSet.
    • VH_dstSet

      public static final VarHandle VH_dstSet
      The VarHandle of dstSet of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dstBinding

      public static final long OFFSET_dstBinding
      The byte offset of dstBinding.
    • LAYOUT_dstBinding

      public static final MemoryLayout LAYOUT_dstBinding
      The memory layout of dstBinding.
    • VH_dstBinding

      public static final VarHandle VH_dstBinding
      The VarHandle of dstBinding of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dstArrayElement

      public static final long OFFSET_dstArrayElement
      The byte offset of dstArrayElement.
    • LAYOUT_dstArrayElement

      public static final MemoryLayout LAYOUT_dstArrayElement
      The memory layout of dstArrayElement.
    • VH_dstArrayElement

      public static final VarHandle VH_dstArrayElement
      The VarHandle of dstArrayElement of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_descriptorCount

      public static final long OFFSET_descriptorCount
      The byte offset of descriptorCount.
    • LAYOUT_descriptorCount

      public static final MemoryLayout LAYOUT_descriptorCount
      The memory layout of descriptorCount.
    • VH_descriptorCount

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

    • VkCopyDescriptorSet

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

    • of

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

      public static VkCopyDescriptorSet ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkCopyDescriptorSet srcSet(long value)
      Sets srcSet with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • srcBinding

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

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

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

      public VkCopyDescriptorSet srcBinding(int value)
      Sets srcBinding with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • srcArrayElement

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

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

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

      public VkCopyDescriptorSet srcArrayElement(int value)
      Sets srcArrayElement with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dstSet

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

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

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

      public VkCopyDescriptorSet dstSet(long value)
      Sets dstSet with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dstBinding

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

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

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

      public VkCopyDescriptorSet dstBinding(int value)
      Sets dstBinding with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dstArrayElement

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

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

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

      public VkCopyDescriptorSet dstArrayElement(int value)
      Sets dstArrayElement with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • descriptorCount

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

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

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

      public VkCopyDescriptorSet descriptorCount(int value)
      Sets descriptorCount with the given value.
      Parameters:
      value - the value
      Returns:
      this