Class VkFramebufferAttachmentImageInfo

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

public sealed class VkFramebufferAttachmentImageInfo extends GroupType permits VkFramebufferAttachmentImageInfo.Buffer

Layout

struct VkFramebufferAttachmentImageInfo {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkImageCreateFlags flags;
    ((uint32_t) VkFlags) VkImageUsageFlags usage;
    uint32_t width;
    uint32_t height;
    uint32_t layerCount;
    uint32_t viewFormatCount;
    const VkFormat* pViewFormats;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_flags
      The byte offset of flags.
    • LAYOUT_flags

      public static final MemoryLayout LAYOUT_flags
      The memory layout of flags.
    • VH_flags

      public static final VarHandle VH_flags
      The VarHandle of flags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_usage

      public static final long OFFSET_usage
      The byte offset of usage.
    • LAYOUT_usage

      public static final MemoryLayout LAYOUT_usage
      The memory layout of usage.
    • VH_usage

      public static final VarHandle VH_usage
      The VarHandle of usage of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_width

      public static final long OFFSET_width
      The byte offset of width.
    • LAYOUT_width

      public static final MemoryLayout LAYOUT_width
      The memory layout of width.
    • VH_width

      public static final VarHandle VH_width
      The VarHandle of width of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_height

      public static final long OFFSET_height
      The byte offset of height.
    • LAYOUT_height

      public static final MemoryLayout LAYOUT_height
      The memory layout of height.
    • VH_height

      public static final VarHandle VH_height
      The VarHandle of height of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_layerCount

      public static final long OFFSET_layerCount
      The byte offset of layerCount.
    • LAYOUT_layerCount

      public static final MemoryLayout LAYOUT_layerCount
      The memory layout of layerCount.
    • VH_layerCount

      public static final VarHandle VH_layerCount
      The VarHandle of layerCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_viewFormatCount

      public static final long OFFSET_viewFormatCount
      The byte offset of viewFormatCount.
    • LAYOUT_viewFormatCount

      public static final MemoryLayout LAYOUT_viewFormatCount
      The memory layout of viewFormatCount.
    • VH_viewFormatCount

      public static final VarHandle VH_viewFormatCount
      The VarHandle of viewFormatCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pViewFormats

      public static final long OFFSET_pViewFormats
      The byte offset of pViewFormats.
    • LAYOUT_pViewFormats

      public static final MemoryLayout LAYOUT_pViewFormats
      The memory layout of pViewFormats.
    • VH_pViewFormats

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

    • VkFramebufferAttachmentImageInfo

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

    • of

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

      public static VkFramebufferAttachmentImageInfo ofNative(MemorySegment segment)

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

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

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

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

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

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

      public VkFramebufferAttachmentImageInfo flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • usage

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

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

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

      public VkFramebufferAttachmentImageInfo usage(int value)
      Sets usage with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • width

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

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

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

      public VkFramebufferAttachmentImageInfo width(int value)
      Sets width with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • height

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

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

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

      public VkFramebufferAttachmentImageInfo height(int value)
      Sets height with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • layerCount

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

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

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

      public VkFramebufferAttachmentImageInfo layerCount(int value)
      Sets layerCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • viewFormatCount

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

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

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

      public VkFramebufferAttachmentImageInfo viewFormatCount(int value)
      Sets viewFormatCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pViewFormats

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

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

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

      public VkFramebufferAttachmentImageInfo pViewFormats(MemorySegment value)
      Sets pViewFormats with the given value.
      Parameters:
      value - the value
      Returns:
      this