cache directwrite

This commit is contained in:
Jorijn van der Graaf 2026-06-16 20:10:23 +02:00
commit ab222ffa1f
3 changed files with 32 additions and 5 deletions

View file

@ -80,6 +80,10 @@ void SetMemory(std::initializer_list<TypeSpec> types,
Device::memoryProperties.memoryHeaps[h].flags = s.flags;
++h;
}
// PreferDirectDeviceWrite reads the cache CacheUploadStrategy derives from
// memoryProperties (device creation does this once); refresh it here since
// the test mutates the layout directly.
Device::CacheUploadStrategy();
}
constexpr VkMemoryHeapFlags HEAP_DEVICE_LOCAL = VK_MEMORY_HEAP_DEVICE_LOCAL_BIT;