Class VkRefreshObjectKHR

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

public final class VkRefreshObjectKHR extends GroupType

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, long elementCount)
      Creates VkRefreshObjectKHR with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

      public static VkRefreshObjectKHR 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 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 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
    • reinterpret

      public VkRefreshObjectKHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted 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
    • asSlice

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

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

      public VkRefreshObjectKHR at(long index, Consumer<VkRefreshObjectKHR> func)
      Visits VkRefreshObjectKHR 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
    • objectTypeAt

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

      public VkRefreshObjectKHR objectTypeAt(long index, int value)
      Sets objectType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • objectHandleAt

      public long objectHandleAt(long index)
      Returns objectHandle at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      objectHandle at the given index
    • objectHandleAt

      public VkRefreshObjectKHR objectHandleAt(long index, long value)
      Sets objectHandle with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • flagsAt

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

      public VkRefreshObjectKHR flagsAt(long index, int value)
      Sets flags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this