mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Added missing image barrier after compute shader execution
This commit is contained in:
parent
3925675b89
commit
cb748c786a
@ -1191,6 +1191,17 @@ namespace dxvk {
|
|||||||
VK_ACCESS_SHADER_WRITE_BIT,
|
VK_ACCESS_SHADER_WRITE_BIT,
|
||||||
slot.bufferView->buffer()->info().stages,
|
slot.bufferView->buffer()->info().stages,
|
||||||
slot.bufferView->buffer()->info().access);
|
slot.bufferView->buffer()->info().access);
|
||||||
|
} else if (binding.type == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE) {
|
||||||
|
m_barriers.accessImage(
|
||||||
|
slot.imageView->image(),
|
||||||
|
slot.imageView->subresources(),
|
||||||
|
slot.imageView->imageInfo().layout,
|
||||||
|
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
|
||||||
|
VK_ACCESS_SHADER_READ_BIT |
|
||||||
|
VK_ACCESS_SHADER_WRITE_BIT,
|
||||||
|
slot.imageView->imageInfo().layout,
|
||||||
|
slot.imageView->imageInfo().stages,
|
||||||
|
slot.imageView->imageInfo().access);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user