- java.lang.Object
-
- java.lang.Enum<VulkanMemoryPropertyFlag>
-
- com.io7m.jcoronado.api.VulkanMemoryPropertyFlag
-
- All Implemented Interfaces:
VulkanEnumBitmaskType
,java.io.Serializable
,java.lang.Comparable<VulkanMemoryPropertyFlag>
public enum VulkanMemoryPropertyFlag extends java.lang.Enum<VulkanMemoryPropertyFlag> implements VulkanEnumBitmaskType
The properties of a heap.- See Also:
- "VkMemoryPropertyFlagBits"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
Specifies that memory allocated with this type is the most efficient for device access.VK_MEMORY_PROPERTY_HOST_CACHED_BIT
Specifies that memory allocated with this type is cached on the host.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_VISIBLE_BIT
Specifies that memory allocated with this type can be mapped for host access.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static VulkanMemoryPropertyFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VulkanMemoryPropertyFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
public static final VulkanMemoryPropertyFlag 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
public static final VulkanMemoryPropertyFlag 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
public static final VulkanMemoryPropertyFlag 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
public static final VulkanMemoryPropertyFlag 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
public static final VulkanMemoryPropertyFlag 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
public static final VulkanMemoryPropertyFlag 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 Detail
-
values
public static VulkanMemoryPropertyFlag[] 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 (VulkanMemoryPropertyFlag c : VulkanMemoryPropertyFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VulkanMemoryPropertyFlag 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 namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
- Specified by:
value
in interfaceVulkanEnumBitmaskType
- Returns:
- The integer value of the constant
-
-