Class VkHostImageLayoutTransitionInfo

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

public sealed class VkHostImageLayoutTransitionInfo extends GroupType permits VkHostImageLayoutTransitionInfo.Buffer

Layout

struct VkHostImageLayoutTransitionInfo {
    (int) VkStructureType sType;
    const void* pNext;
    (uint64_t) VkImage image;
    (int) VkImageLayout oldLayout;
    (int) VkImageLayout newLayout;
    (struct VkImageSubresourceRange) VkImageSubresourceRange subresourceRange;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_image
      The byte offset of image.
    • LAYOUT_image

      public static final MemoryLayout LAYOUT_image
      The memory layout of image.
    • VH_image

      public static final VarHandle VH_image
      The VarHandle of image of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_oldLayout

      public static final long OFFSET_oldLayout
      The byte offset of oldLayout.
    • LAYOUT_oldLayout

      public static final MemoryLayout LAYOUT_oldLayout
      The memory layout of oldLayout.
    • VH_oldLayout

      public static final VarHandle VH_oldLayout
      The VarHandle of oldLayout of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_newLayout

      public static final long OFFSET_newLayout
      The byte offset of newLayout.
    • LAYOUT_newLayout

      public static final MemoryLayout LAYOUT_newLayout
      The memory layout of newLayout.
    • VH_newLayout

      public static final VarHandle VH_newLayout
      The VarHandle of newLayout of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_subresourceRange

      public static final long OFFSET_subresourceRange
      The byte offset of subresourceRange.
    • LAYOUT_subresourceRange

      public static final MemoryLayout LAYOUT_subresourceRange
      The memory layout of subresourceRange.
  • Constructor Details

    • VkHostImageLayoutTransitionInfo

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

    • of

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

      public static VkHostImageLayoutTransitionInfo ofNative(MemorySegment segment)

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

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

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

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

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

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

      public VkHostImageLayoutTransitionInfo image(long value)
      Sets image with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • oldLayout

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

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

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

      public VkHostImageLayoutTransitionInfo oldLayout(int value)
      Sets oldLayout with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • newLayout

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

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

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

      public VkHostImageLayoutTransitionInfo newLayout(int value)
      Sets newLayout with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subresourceRange

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

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

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

      public VkHostImageLayoutTransitionInfo subresourceRange(MemorySegment value)
      Sets subresourceRange with the given value.
      Parameters:
      value - the value
      Returns:
      this