diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2015-07-02 17:09:57 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2015-07-02 17:09:57 -0600 |
| commit | 0f65d6fdecdd20a2164ff7bec80a8f53b1ff234a (patch) | |
| tree | add654a5d6241b313c409d1fd1d86c419b86e926 /include/vulkan.h | |
| parent | a1e8fd0a503731aec138e2bc2a1171d3d10418e7 (diff) | |
| download | usermoji-0f65d6fdecdd20a2164ff7bec80a8f53b1ff234a.tar.xz | |
vulkan.h: V120 -- Tighten spec around VkMemoryRequirements
Moved the HOST_LOCAL memory property.
Diffstat (limited to 'include/vulkan.h')
| -rw-r--r-- | include/vulkan.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/vulkan.h b/include/vulkan.h index 68d0f718..6d79fcc5 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -33,7 +33,7 @@ #include "vk_platform.h" // Vulkan API version supported by this file -#define VK_API_VERSION VK_MAKE_VERSION(0, 119, 0) +#define VK_API_VERSION VK_MAKE_VERSION(0, 120, 0) #ifdef __cplusplus extern "C" @@ -892,7 +892,6 @@ typedef enum VkMemoryPropertyFlagBits_ // vkInvalidateMappedMemoryRanges must be used flush/invalidate host cache VK_MEMORY_PROPERTY_HOST_UNCACHED_BIT = VK_BIT(2), // Memory should not be cached by the host VK_MEMORY_PROPERTY_HOST_WRITE_COMBINED_BIT = VK_BIT(3), // Memory should support host write combining - VK_MEMORY_PROPERTY_PREFER_HOST_LOCAL = VK_BIT(4), // If set, prefer host access } VkMemoryPropertyFlagBits; // Memory output flags passed to resource transition commands @@ -1116,6 +1115,13 @@ typedef enum VkQueryPipelineStatisticFlagBits_ { // Memory mapping flags typedef VkFlags VkMemoryMapFlags; +// Memory heap flags +typedef VkFlags VkMemoryHeapFlags; +typedef enum VkMemoryHeapFlagBits_ { + VK_MEMORY_HEAP_HOST_LOCAL = VK_BIT(0), // If set, heap represents host memory +} VkMemoryHeapFlagBits; + + // ------------------------------------------------------------------------------------------------ // Vulkan structures @@ -1318,6 +1324,7 @@ typedef struct VkMemoryType_ typedef struct VkMemoryHeap_ { VkDeviceSize size; // Available memory in the heap + VkMemoryHeapFlags flags; // Flags for the heap } VkMemoryHeap; typedef struct VkPhysicalDeviceMemoryProperties_ |
