Enum VulkanSystemAllocationScope

    • Enum Constant Detail

      • VK_SYSTEM_ALLOCATION_SCOPE_COMMAND

        public static final VulkanSystemAllocationScope VK_SYSTEM_ALLOCATION_SCOPE_COMMAND
        Specifies that the allocation is scoped to the duration of the Vulkan command.
      • VK_SYSTEM_ALLOCATION_SCOPE_OBJECT

        public static final VulkanSystemAllocationScope VK_SYSTEM_ALLOCATION_SCOPE_OBJECT
        Specifies that the allocation is scoped to the lifetime of the Vulkan object that is being created or used.
      • VK_SYSTEM_ALLOCATION_SCOPE_CACHE

        public static final VulkanSystemAllocationScope VK_SYSTEM_ALLOCATION_SCOPE_CACHE
        Specifies that the allocation is scoped to the lifetime of a VkPipelineCache or VkValidationCacheEXT object.
      • VK_SYSTEM_ALLOCATION_SCOPE_DEVICE

        public static final VulkanSystemAllocationScope VK_SYSTEM_ALLOCATION_SCOPE_DEVICE
        Specifies that the allocation is scoped to the lifetime of the Vulkan device.
      • VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE

        public static final VulkanSystemAllocationScope VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE
        Specifies that the allocation is scoped to the lifetime of the Vulkan instance.
    • Method Detail

      • values

        public static VulkanSystemAllocationScope[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (VulkanSystemAllocationScope c : VulkanSystemAllocationScope.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VulkanSystemAllocationScope valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • ofInt

        public static VulkanSystemAllocationScope ofInt​(int index)
        Create a scope from the given integer.
        Parameters:
        index - The integer value
        Returns:
        The scope associated with the integer