1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[hud] Allocate vertex buffer in host-visible device memory if possible

This commit is contained in:
Philip Rebohle 2019-12-16 00:24:19 +01:00
parent c6fb8fa5e8
commit 566fb84abd
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -323,6 +323,7 @@ namespace dxvk::hud {
info.access = VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT;
return device->createBuffer(info,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT |
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
}