Enum Class VulkanMemoryAllocateFlag
- All Implemented Interfaces:
VulkanEnumBitmaskType, Serializable, Comparable<VulkanMemoryAllocateFlag>, Constable
public enum VulkanMemoryAllocateFlag
extends Enum<VulkanMemoryAllocateFlag>
implements VulkanEnumBitmaskType
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the memory can be attached to a buffer object created with the VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT usage flag set.Specifies that the memory’s address can be saved and reused on a subsequent run (e.g.Specifies that memory will be allocated for the devices in VkMemoryAllocateFlagsInfo::deviceMask. -
Method Summary
Modifier and TypeMethodDescriptionintvalue()static VulkanMemoryAllocateFlagReturns the enum constant of this class with the specified name.static VulkanMemoryAllocateFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT
Specifies that memory will be allocated for the devices in VkMemoryAllocateFlagsInfo::deviceMask. -
VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT
Specifies that the memory can be attached to a buffer object created with the VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT usage flag set. -
VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT
Specifies that the memory’s address can be saved and reused on a subsequent run (e.g. for trace capture and replay), see VkBufferOpaqueCaptureAddressCreateInfo for more detail. If this bit is set, VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT must also be set.
-
-
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
-
value
public int value()- Specified by:
valuein interfaceVulkanEnumBitmaskType- Returns:
- The integer value of the constant
-