Class VkValidationFlagsEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkValidationFlagsEXT extends Struct<VkValidationFlagsEXT> implements NativeResource

 struct VkValidationFlagsEXT {
     VkStructureType sType;
     void const * pNext;
     uint32_t disabledValidationCheckCount;
     VkValidationCheckEXT const * pDisabledValidationChecks;
 }
  • 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.
    • DISABLEDVALIDATIONCHECKCOUNT

      public static final int DISABLEDVALIDATIONCHECKCOUNT
      The struct member offsets.
    • PDISABLEDVALIDATIONCHECKS

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

    • VkValidationFlagsEXT

      public VkValidationFlagsEXT(ByteBuffer container)
      Creates a VkValidationFlagsEXT 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<VkValidationFlagsEXT>
    • sType

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

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

      public int disabledValidationCheckCount()
      Returns:
      the value of the disabledValidationCheckCount field.
    • pDisabledValidationChecks

      public IntBuffer pDisabledValidationChecks()
      Returns:
      a IntBuffer view of the data pointed to by the pDisabledValidationChecks field.
    • sType

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

      public VkValidationFlagsEXT sType$Default()
      Sets the STRUCTURE_TYPE_VALIDATION_FLAGS_EXT value to the sType field.
    • pNext

      public VkValidationFlagsEXT pNext(long value)
      Sets the specified value to the pNext field.
    • pDisabledValidationChecks

      public VkValidationFlagsEXT pDisabledValidationChecks(IntBuffer value)
      Sets the address of the specified IntBuffer to the pDisabledValidationChecks field.
    • set

      public VkValidationFlagsEXT set(int sType, long pNext, IntBuffer pDisabledValidationChecks)
      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 VkValidationFlagsEXT malloc()
      Returns a new VkValidationFlagsEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkValidationFlagsEXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkValidationFlagsEXT.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().
    • ndisabledValidationCheckCount

      public static int ndisabledValidationCheckCount(long struct)
    • npDisabledValidationChecks

      public static IntBuffer npDisabledValidationChecks(long struct)
      Unsafe version of pDisabledValidationChecks.
    • 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.
    • ndisabledValidationCheckCount

      public static void ndisabledValidationCheckCount(long struct, int value)
      Sets the specified value to the disabledValidationCheckCount field of the specified struct.
    • npDisabledValidationChecks

      public static void npDisabledValidationChecks(long struct, IntBuffer value)
      Unsafe version of pDisabledValidationChecks.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate