Class VkPhysicalDevicePrivateDataFeatures

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

public final class VkPhysicalDevicePrivateDataFeatures extends GroupType

Layout

struct VkPhysicalDevicePrivateDataFeatures {
    (int) VkStructureType sType;
    void* pNext;
    (uint32_t) VkBool32 privateData;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_privateData
      The byte offset of privateData.
    • LAYOUT_privateData

      public static final MemoryLayout LAYOUT_privateData
      The memory layout of privateData.
    • VH_privateData

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

    • VkPhysicalDevicePrivateDataFeatures

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

    • of

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

      public static VkPhysicalDevicePrivateDataFeatures ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkPhysicalDevicePrivateDataFeatures privateData(int value)
      Sets privateData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkPhysicalDevicePrivateDataFeatures 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
    • sTypeAt

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

      public VkPhysicalDevicePrivateDataFeatures sTypeAt(long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pNextAt

      public MemorySegment pNextAt(long index)
      Returns pNext at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNextAt

      public VkPhysicalDevicePrivateDataFeatures pNextAt(long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • privateDataAt

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

      public VkPhysicalDevicePrivateDataFeatures privateDataAt(long index, int value)
      Sets privateData with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this