Class VkDeviceFaultVendorInfoEXT

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

public sealed class VkDeviceFaultVendorInfoEXT extends GroupType permits VkDeviceFaultVendorInfoEXT.Buffer

Layout

struct VkDeviceFaultVendorInfoEXT {
    char description[256];
    uint64_t vendorFaultCode;
    uint64_t vendorFaultData;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkDeviceFaultVendorInfoEXT.
    • OFFSET_description

      public static final long OFFSET_description
      The byte offset of description.
    • LAYOUT_description

      public static final MemoryLayout LAYOUT_description
      The memory layout of description.
    • VH_description

      public static final VarHandle VH_description
      The VarHandle of description of type (MemorySegment base, long baseOffset, long index, long index0)MemorySegment.
    • OFFSET_vendorFaultCode

      public static final long OFFSET_vendorFaultCode
      The byte offset of vendorFaultCode.
    • LAYOUT_vendorFaultCode

      public static final MemoryLayout LAYOUT_vendorFaultCode
      The memory layout of vendorFaultCode.
    • VH_vendorFaultCode

      public static final VarHandle VH_vendorFaultCode
      The VarHandle of vendorFaultCode of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vendorFaultData

      public static final long OFFSET_vendorFaultData
      The byte offset of vendorFaultData.
    • LAYOUT_vendorFaultData

      public static final MemoryLayout LAYOUT_vendorFaultData
      The memory layout of vendorFaultData.
    • VH_vendorFaultData

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

    • VkDeviceFaultVendorInfoEXT

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

    • of

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

      public static VkDeviceFaultVendorInfoEXT ofNative(MemorySegment segment)

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

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

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

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

      Converts this instance to a buffer.
      Returns:
      the buffer
    • description

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

      public static byte description(MemorySegment segment, long index, long index0)
      Returns description at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      description at the given index
    • description

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

      public byte description(long index0)
      Returns description.
      Parameters:
      index0 - the Index 0 of the array
      Returns:
      description
    • description

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

      public static void description(MemorySegment segment, long index, long index0, byte value)
      Sets description with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
    • description

      public VkDeviceFaultVendorInfoEXT description(MemorySegment value)
      Sets description with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • description

      public VkDeviceFaultVendorInfoEXT description(long index0, byte value)
      Sets description with the given value.
      Parameters:
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • vendorFaultCode

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

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

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

      public VkDeviceFaultVendorInfoEXT vendorFaultCode(long value)
      Sets vendorFaultCode with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vendorFaultData

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

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

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

      public VkDeviceFaultVendorInfoEXT vendorFaultData(long value)
      Sets vendorFaultData with the given value.
      Parameters:
      value - the value
      Returns:
      this