Skip to content

Commit 2311a38

Browse files
committed
Added VK_EXT_memory_priority extension
1 parent cbc596a commit 2311a38

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

include/vsg/vk/vulkan.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,22 @@ typedef struct VkPhysicalDeviceMemoryBudgetPropertiesEXT {
133133
VkDeviceSize heapUsage[VK_MAX_MEMORY_HEAPS];
134134
} VkPhysicalDeviceMemoryBudgetPropertiesEXT;
135135

136+
#define VK_EXT_memory_priority 1
137+
#define VK_EXT_MEMORY_PRIORITY_SPEC_VERSION 1
138+
#define VK_EXT_MEMORY_PRIORITY_EXTENSION_NAME "VK_EXT_memory_priority"
139+
140+
typedef struct VkPhysicalDeviceMemoryPriorityFeaturesEXT {
141+
VkStructureType sType;
142+
void* pNext;
143+
VkBool32 memoryPriority;
144+
} VkPhysicalDeviceMemoryPriorityFeaturesEXT;
145+
146+
typedef struct VkMemoryPriorityAllocateInfoEXT {
147+
VkStructureType sType;
148+
const void* pNext;
149+
float priority;
150+
} VkMemoryPriorityAllocateInfoEXT;
151+
136152
#endif
137153

138154
////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)