Class VkRefreshObjectKHR

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

public sealed class VkRefreshObjectKHR extends GroupType permits VkRefreshObjectKHR.Buffer

Layout

struct VkRefreshObjectKHR {
    (int) VkObjectType objectType;
    uint64_t objectHandle;
    ((uint32_t) VkFlags) VkRefreshObjectFlagsKHR flags;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkRefreshObjectKHR.
    • OFFSET_objectType

      public static final long OFFSET_objectType
      The byte offset of objectType.
    • LAYOUT_objectType

      public static final MemoryLayout LAYOUT_objectType
      The memory layout of objectType.
    • VH_objectType

      public static final VarHandle VH_objectType
      The VarHandle of objectType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_objectHandle

      public static final long OFFSET_objectHandle
      The byte offset of objectHandle.
    • LAYOUT_objectHandle

      public static final MemoryLayout LAYOUT_objectHandle
      The memory layout of objectHandle.
    • VH_objectHandle

      public static final VarHandle VH_objectHandle
      The VarHandle of objectHandle 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.
  • Constructor Details

    • VkRefreshObjectKHR

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

    • of

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

      public static VkRefreshObjectKHR ofNative(MemorySegment segment)

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

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

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

      public VkRefreshObjectKHR copyFrom(VkRefreshObjectKHR src)
      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • asBuffer

      public VkRefreshObjectKHR.Buffer asBuffer()
      Converts this instance to a buffer.
      Returns:
      the buffer
    • objectType

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

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

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

      public VkRefreshObjectKHR objectType(int value)
      Sets objectType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • objectHandle

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

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

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

      public VkRefreshObjectKHR objectHandle(long value)
      Sets objectHandle 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 VkRefreshObjectKHR flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this