Class VkDeviceFaultCountsEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkDeviceFaultCountsEXT extends Struct<VkDeviceFaultCountsEXT> implements NativeResource

 struct VkDeviceFaultCountsEXT {
     VkStructureType sType;
     void * pNext;
     uint32_t addressInfoCount;
     uint32_t vendorInfoCount;
     VkDeviceSize vendorBinarySize;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • ADDRESSINFOCOUNT

      public static final int ADDRESSINFOCOUNT
      The struct member offsets.
    • VENDORINFOCOUNT

      public static final int VENDORINFOCOUNT
      The struct member offsets.
    • VENDORBINARYSIZE

      public static final int VENDORBINARYSIZE
      The struct member offsets.
  • Constructor Details

    • VkDeviceFaultCountsEXT

      public VkDeviceFaultCountsEXT(ByteBuffer container)
      Creates a VkDeviceFaultCountsEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkDeviceFaultCountsEXT>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • addressInfoCount

      public int addressInfoCount()
      Returns:
      the value of the addressInfoCount field.
    • vendorInfoCount

      public int vendorInfoCount()
      Returns:
      the value of the vendorInfoCount field.
    • vendorBinarySize

      public long vendorBinarySize()
      Returns:
      the value of the vendorBinarySize field.
    • sType

      public VkDeviceFaultCountsEXT sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkDeviceFaultCountsEXT sType$Default()
      Sets the STRUCTURE_TYPE_DEVICE_FAULT_COUNTS_EXT value to the sType field.
    • pNext

      public VkDeviceFaultCountsEXT pNext(long value)
      Sets the specified value to the pNext field.
    • addressInfoCount

      public VkDeviceFaultCountsEXT addressInfoCount(int value)
      Sets the specified value to the addressInfoCount field.
    • vendorInfoCount

      public VkDeviceFaultCountsEXT vendorInfoCount(int value)
      Sets the specified value to the vendorInfoCount field.
    • vendorBinarySize

      public VkDeviceFaultCountsEXT vendorBinarySize(long value)
      Sets the specified value to the vendorBinarySize field.
    • set

      public VkDeviceFaultCountsEXT set(int sType, long pNext, int addressInfoCount, int vendorInfoCount, long vendorBinarySize)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkDeviceFaultCountsEXT malloc()
      Returns a new VkDeviceFaultCountsEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkDeviceFaultCountsEXT calloc()
      Returns a new VkDeviceFaultCountsEXT instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkDeviceFaultCountsEXT create()
      Returns a new VkDeviceFaultCountsEXT instance allocated with BufferUtils.
    • create

      public static VkDeviceFaultCountsEXT create(long address)
      Returns a new VkDeviceFaultCountsEXT instance for the specified memory address.
    • createSafe

      public static @Nullable VkDeviceFaultCountsEXT createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkDeviceFaultCountsEXT.Buffer malloc(int capacity)
      Returns a new VkDeviceFaultCountsEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkDeviceFaultCountsEXT.Buffer calloc(int capacity)
      Returns a new VkDeviceFaultCountsEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkDeviceFaultCountsEXT.Buffer create(int capacity)
      Returns a new VkDeviceFaultCountsEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkDeviceFaultCountsEXT.Buffer create(long address, int capacity)
      Create a VkDeviceFaultCountsEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkDeviceFaultCountsEXT.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkDeviceFaultCountsEXT malloc(MemoryStack stack)
      Returns a new VkDeviceFaultCountsEXT instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkDeviceFaultCountsEXT calloc(MemoryStack stack)
      Returns a new VkDeviceFaultCountsEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkDeviceFaultCountsEXT.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkDeviceFaultCountsEXT.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkDeviceFaultCountsEXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkDeviceFaultCountsEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • naddressInfoCount

      public static int naddressInfoCount(long struct)
      Unsafe version of addressInfoCount().
    • nvendorInfoCount

      public static int nvendorInfoCount(long struct)
      Unsafe version of vendorInfoCount().
    • nvendorBinarySize

      public static long nvendorBinarySize(long struct)
      Unsafe version of vendorBinarySize().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • naddressInfoCount

      public static void naddressInfoCount(long struct, int value)
      Unsafe version of addressInfoCount.
    • nvendorInfoCount

      public static void nvendorInfoCount(long struct, int value)
      Unsafe version of vendorInfoCount.
    • nvendorBinarySize

      public static void nvendorBinarySize(long struct, long value)
      Unsafe version of vendorBinarySize.