Enum Class VulkanSystemAllocationScope
- All Implemented Interfaces:
VulkanEnumIntegerType, Serializable, Comparable<VulkanSystemAllocationScope>, Constable
public enum VulkanSystemAllocationScope
extends Enum<VulkanSystemAllocationScope>
implements VulkanEnumIntegerType
Allocation scope.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the allocation is scoped to the lifetime of a VkPipelineCache or VkValidationCacheEXT object.Specifies that the allocation is scoped to the duration of the Vulkan command.Specifies that the allocation is scoped to the lifetime of the Vulkan device.Specifies that the allocation is scoped to the lifetime of the Vulkan instance.Specifies that the allocation is scoped to the lifetime of the Vulkan object that is being created or used. -
Method Summary
Modifier and TypeMethodDescriptionstatic VulkanSystemAllocationScopeofInt(int index) Create a scope from the given integer.intvalue()static VulkanSystemAllocationScopeReturns the enum constant of this class with the specified name.static VulkanSystemAllocationScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VK_SYSTEM_ALLOCATION_SCOPE_COMMAND
Specifies that the allocation is scoped to the duration of the Vulkan command. -
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
Specifies that the allocation is scoped to the lifetime of a VkPipelineCache or VkValidationCacheEXT object. -
VK_SYSTEM_ALLOCATION_SCOPE_DEVICE
Specifies that the allocation is scoped to the lifetime of the Vulkan device. -
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE
Specifies that the allocation is scoped to the lifetime of the Vulkan instance.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
ofInt
Create a scope from the given integer.- Parameters:
index- The integer value- Returns:
- The scope associated with the integer
-
value
public int value()- Specified by:
valuein interfaceVulkanEnumIntegerType- Returns:
- The integer value of the constant
-