mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-01 16:24:12 +01:00
[dxvk] Use new barrier helpers in changeImageLayout
This commit is contained in:
parent
bbe7767475
commit
cc3dd31a5f
@ -188,15 +188,11 @@ namespace dxvk {
|
||||
|
||||
this->prepareImage(image, subresources);
|
||||
|
||||
if (m_execBarriers.isImageDirty(image, subresources, DxvkAccess::Write))
|
||||
m_execBarriers.recordCommands(m_cmd);
|
||||
flushPendingAccesses(*image, subresources, DxvkAccess::Write);
|
||||
|
||||
m_execBarriers.accessImage(image, subresources,
|
||||
image->info().layout,
|
||||
image->info().stages, 0,
|
||||
layout,
|
||||
image->info().stages,
|
||||
image->info().access);
|
||||
accessImage(DxvkCmdBuffer::ExecBuffer, *image, subresources,
|
||||
image->info().layout, image->info().stages, 0,
|
||||
layout, image->info().stages, image->info().access);
|
||||
|
||||
image->setLayout(layout);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user