Class VkPhysicalDeviceCooperativeMatrixFeaturesKHR

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

public final class VkPhysicalDeviceCooperativeMatrixFeaturesKHR extends GroupType

Layout

struct VkPhysicalDeviceCooperativeMatrixFeaturesKHR {
    (int) VkStructureType sType;
    void* pNext;
    (uint32_t) VkBool32 cooperativeMatrix;
    (uint32_t) VkBool32 cooperativeMatrixRobustBufferAccess;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_cooperativeMatrix
      The byte offset of cooperativeMatrix.
    • LAYOUT_cooperativeMatrix

      public static final MemoryLayout LAYOUT_cooperativeMatrix
      The memory layout of cooperativeMatrix.
    • VH_cooperativeMatrix

      public static final VarHandle VH_cooperativeMatrix
      The VarHandle of cooperativeMatrix of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_cooperativeMatrixRobustBufferAccess

      public static final long OFFSET_cooperativeMatrixRobustBufferAccess
      The byte offset of cooperativeMatrixRobustBufferAccess.
    • LAYOUT_cooperativeMatrixRobustBufferAccess

      public static final MemoryLayout LAYOUT_cooperativeMatrixRobustBufferAccess
      The memory layout of cooperativeMatrixRobustBufferAccess.
    • VH_cooperativeMatrixRobustBufferAccess

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

    • VkPhysicalDeviceCooperativeMatrixFeaturesKHR

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

    • of

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

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

      Creates VkPhysicalDeviceCooperativeMatrixFeaturesKHR 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

      Allocates a VkPhysicalDeviceCooperativeMatrixFeaturesKHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkPhysicalDeviceCooperativeMatrixFeaturesKHR
    • alloc

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

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

      public VkPhysicalDeviceCooperativeMatrixFeaturesKHR 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

      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
    • cooperativeMatrix

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

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

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

      public VkPhysicalDeviceCooperativeMatrixFeaturesKHR cooperativeMatrix(int value)
      Sets cooperativeMatrix with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • cooperativeMatrixRobustBufferAccess

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

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

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

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

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

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

      Visits VkPhysicalDeviceCooperativeMatrixFeaturesKHR 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 VkPhysicalDeviceCooperativeMatrixFeaturesKHR 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 VkPhysicalDeviceCooperativeMatrixFeaturesKHR 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
    • cooperativeMatrixAt

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

      public VkPhysicalDeviceCooperativeMatrixFeaturesKHR cooperativeMatrixAt(long index, int value)
      Sets cooperativeMatrix with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • cooperativeMatrixRobustBufferAccessAt

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

      public VkPhysicalDeviceCooperativeMatrixFeaturesKHR cooperativeMatrixRobustBufferAccessAt(long index, int value)
      Sets cooperativeMatrixRobustBufferAccess with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this