cache directwrite
This commit is contained in:
parent
69641f1c44
commit
ab222ffa1f
3 changed files with 32 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue