Enum Class VulkanMemoryPropertyFlag
- All Implemented Interfaces:
VulkanEnumBitmaskType
,Serializable
,Comparable<VulkanMemoryPropertyFlag>
,Constable
public enum VulkanMemoryPropertyFlag
extends Enum<VulkanMemoryPropertyFlag>
implements VulkanEnumBitmaskType
The properties of a heap.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that memory allocated with this type is the most efficient for device access.Specifies that memory allocated with this type is cached on the host.Specifies that the host cache management commands vkFlushMappedMemoryRanges and vkInvalidateMappedMemoryRanges are not needed to flush host writes to the device or make device writes visible to the host, respectively.Specifies that memory allocated with this type can be mapped for host access.Specifies that the memory type only allows device access to the memory and is lazily allocated.Specifies that the memory type only allows device access to the memory, and allows protected queue operations to access the memory. -
Method Summary
Modifier and TypeMethodDescriptionint
value()
static VulkanMemoryPropertyFlag
Returns the enum constant of this class with the specified name.static VulkanMemoryPropertyFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
Specifies that memory allocated with this type is the most efficient for device access. -
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
Specifies that memory allocated with this type can be mapped for host access. -
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
Specifies that the host cache management commands vkFlushMappedMemoryRanges and vkInvalidateMappedMemoryRanges are not needed to flush host writes to the device or make device writes visible to the host, respectively. -
VK_MEMORY_PROPERTY_HOST_CACHED_BIT
Specifies that memory allocated with this type is cached on the host. Host memory accesses to uncached memory are slower than to cached memory, however uncached memory is always host coherent. -
VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT
Specifies that the memory type only allows device access to the memory and is lazily allocated. -
VK_MEMORY_PROPERTY_PROTECTED_BIT
Specifies that the memory type only allows device access to the memory, and allows protected queue operations to access the memory.
-
-
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:
value
in interfaceVulkanEnumBitmaskType
- Returns:
- The integer value of the constant
-