Class VkDescriptorPoolSize

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkDescriptorPoolSize
All Implemented Interfaces:
Addressable

public final class VkDescriptorPoolSize extends GroupType

Layout

struct VkDescriptorPoolSize {
    (int) VkDescriptorType type;
    uint32_t descriptorCount;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkDescriptorPoolSize.
    • OFFSET_type

      public static final long OFFSET_type
      The byte offset of type.
    • LAYOUT_type

      public static final MemoryLayout LAYOUT_type
      The memory layout of type.
    • VH_type

      public static final VarHandle VH_type
      The VarHandle of type 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

    • VkDescriptorPoolSize

      public VkDescriptorPoolSize(MemorySegment segment, long elementCount)
      Creates VkDescriptorPoolSize with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

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

      public static VkDescriptorPoolSize ofNative(MemorySegment segment)

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

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

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

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

      public VkDescriptorPoolSize reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • type

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

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

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

      public VkDescriptorPoolSize type(int value)
      Sets type 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 VkDescriptorPoolSize descriptorCount(int value)
      Sets descriptorCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

      public VkDescriptorPoolSize asSlice(long index)
      Creates a slice of VkDescriptorPoolSize.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkDescriptorPoolSize
    • asSlice

      public VkDescriptorPoolSize asSlice(long index, long count)
      Creates a slice of VkDescriptorPoolSize.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkDescriptorPoolSize
    • at

      public VkDescriptorPoolSize at(long index, Consumer<VkDescriptorPoolSize> func)
      Visits VkDescriptorPoolSize buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • typeAt

      public int typeAt(long index)
      Returns type at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      type at the given index
    • typeAt

      public VkDescriptorPoolSize typeAt(long index, int value)
      Sets type with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • descriptorCountAt

      public int descriptorCountAt(long index)
      Returns descriptorCount at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      descriptorCount at the given index
    • descriptorCountAt

      public VkDescriptorPoolSize descriptorCountAt(long index, int value)
      Sets descriptorCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this