Class VkValidationFlagsEXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkValidationFlagsEXT
    extends Struct
    implements NativeResource
    Specify validation checks to disable for a Vulkan instance.
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_VALIDATION_FLAGS_EXT
    • pDisabledValidationChecks must be a valid pointer to an array of disabledValidationCheckCount valid VkValidationCheckEXT values
    • disabledValidationCheckCount must be greater than 0

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • disabledValidationCheckCount – the number of checks to disable.
    • pDisabledValidationChecks – a pointer to an array of VkValidationCheckEXT values specifying the validation checks to be disabled.

    Layout

    
     struct VkValidationFlagsEXT {
         VkStructureType sType;
         void const * pNext;
         uint32_t disabledValidationCheckCount;
         VkValidationCheckEXT const * pDisabledValidationChecks;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, DISABLEDVALIDATIONCHECKCOUNT, PDISABLEDVALIDATIONCHECKS

        The struct member offsets.
    • Constructor Detail

      • VkValidationFlagsEXT

        public VkValidationFlagsEXT​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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 java.nio.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.
      • pNext

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

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

        public VkValidationFlagsEXT set​(int sType,
                                        long pNext,
                                        java.nio.IntBuffer pDisabledValidationChecks)
        Initializes this struct with the specified values.
      • 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​(long address)
        Returns a new VkValidationFlagsEXT instance for the specified memory address.
      • createSafe

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

        public static VkValidationFlagsEXT callocStack()
        Returns a new VkValidationFlagsEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

        public static VkValidationFlagsEXT callocStack​(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
      • nsType

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

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

        public static java.nio.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,
                                                      java.nio.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
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array