graphics: use budget-aware preferred-device image allocation

This commit is contained in:
nmzik committed 2026-10-29 18:37:29 +01:00
1 parent 25f3ba4eae
commit 6ff6e7551d
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -2186,9 +2186,9 @@ public:
VkMemoryPropertyFlags properties{};
vmaGetAllocationMemoryProperties(graphics.allocator, image.allocation,
&properties);
Require(name, "allocation policy",
Require(name, "small allocation preference",
(properties & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT) != 0,
"native image lost its device-local memory requirement");
"native image did not prefer available device-local memory");
// A reused presentation image may still describe its previous recording.
// No commands use this fixture; seed that bookkeeping before retirement.