Class VkValidationFeaturesEXT

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

    public class VkValidationFeaturesEXT
    extends Struct
    implements NativeResource
    Specify validation features to enable or disable for a Vulkan instance.
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_VALIDATION_FEATURES_EXT
    • If enabledValidationFeatureCount is not 0, pEnabledValidationFeatures must be a valid pointer to an array of enabledValidationFeatureCount valid VkValidationFeatureEnableEXT values
    • If disabledValidationFeatureCount is not 0, pDisabledValidationFeatures must be a valid pointer to an array of disabledValidationFeatureCount valid VkValidationFeatureDisableEXT values

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • enabledValidationFeatureCount – the number of features to enable.
    • pEnabledValidationFeatures – a pointer to an array of VkValidationFeatureEnableEXT values specifying the validation features to be enabled.
    • disabledValidationFeatureCount – the number of features to disable.
    • pDisabledValidationFeatures – a pointer to an array of VkValidationFeatureDisableEXT values specifying the validation features to be disabled.

    Layout

    
     struct VkValidationFeaturesEXT {
         VkStructureType sType;
         void const * pNext;
         uint32_t enabledValidationFeatureCount;
         VkValidationFeatureEnableEXT const * pEnabledValidationFeatures;
         uint32_t disabledValidationFeatureCount;
         VkValidationFeatureDisableEXT const * pDisabledValidationFeatures;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, ENABLEDVALIDATIONFEATURECOUNT, PENABLEDVALIDATIONFEATURES, DISABLEDVALIDATIONFEATURECOUNT, PDISABLEDVALIDATIONFEATURES

        The struct member offsets.
    • Constructor Detail

      • VkValidationFeaturesEXT

        public VkValidationFeaturesEXT​(java.nio.ByteBuffer container)
        Creates a VkValidationFeaturesEXT 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.
      • enabledValidationFeatureCount

        public int enabledValidationFeatureCount()
        Returns the value of the enabledValidationFeatureCount field.
      • pEnabledValidationFeatures

        @Nullable
        public java.nio.IntBuffer pEnabledValidationFeatures()
        Returns a IntBuffer view of the data pointed to by the pEnabledValidationFeatures field.
      • disabledValidationFeatureCount

        public int disabledValidationFeatureCount()
        Returns the value of the disabledValidationFeatureCount field.
      • pDisabledValidationFeatures

        @Nullable
        public java.nio.IntBuffer pDisabledValidationFeatures()
        Returns a IntBuffer view of the data pointed to by the pDisabledValidationFeatures field.
      • pEnabledValidationFeatures

        public VkValidationFeaturesEXT pEnabledValidationFeatures​(@Nullable
                                                                  java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pEnabledValidationFeatures field.
      • pDisabledValidationFeatures

        public VkValidationFeaturesEXT pDisabledValidationFeatures​(@Nullable
                                                                   java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pDisabledValidationFeatures field.
      • set

        public VkValidationFeaturesEXT set​(int sType,
                                           long pNext,
                                           @Nullable
                                           java.nio.IntBuffer pEnabledValidationFeatures,
                                           @Nullable
                                           java.nio.IntBuffer pDisabledValidationFeatures)
        Initializes this struct with the specified values.
      • malloc

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

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

        public static VkValidationFeaturesEXT create​(long address)
        Returns a new VkValidationFeaturesEXT instance for the specified memory address.
      • callocStack

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

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

        public static VkValidationFeaturesEXT callocStack​(MemoryStack stack)
        Returns a new VkValidationFeaturesEXT 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().
      • npEnabledValidationFeatures

        @Nullable
        public static java.nio.IntBuffer npEnabledValidationFeatures​(long struct)
        Unsafe version of pEnabledValidationFeatures.
      • npDisabledValidationFeatures

        @Nullable
        public static java.nio.IntBuffer npDisabledValidationFeatures​(long struct)
        Unsafe version of pDisabledValidationFeatures.
      • 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.
      • nenabledValidationFeatureCount

        public static void nenabledValidationFeatureCount​(long struct,
                                                          int value)
        Sets the specified value to the enabledValidationFeatureCount field of the specified struct.
      • npEnabledValidationFeatures

        public static void npEnabledValidationFeatures​(long struct,
                                                       @Nullable
                                                       java.nio.IntBuffer value)
        Unsafe version of pEnabledValidationFeatures.
      • ndisabledValidationFeatureCount

        public static void ndisabledValidationFeatureCount​(long struct,
                                                           int value)
        Sets the specified value to the disabledValidationFeatureCount field of the specified struct.
      • npDisabledValidationFeatures

        public static void npDisabledValidationFeatures​(long struct,
                                                        @Nullable
                                                        java.nio.IntBuffer value)
        Unsafe version of pDisabledValidationFeatures.
      • 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