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

[d3d11] Add texel buffer usage to staging buffer

Needed for staging image updates.
This commit is contained in:
Philip Rebohle 2021-06-24 02:59:56 +02:00
parent 7160b85924
commit 7c0ee272c3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4321,7 +4321,8 @@ namespace dxvk {
DxvkBufferCreateInfo info;
info.size = Size;
info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT
| VK_BUFFER_USAGE_STORAGE_BUFFER_BIT;
| VK_BUFFER_USAGE_STORAGE_BUFFER_BIT
| VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT;
info.stages = VK_PIPELINE_STAGE_TRANSFER_BIT
| VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
| VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;