mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] Use new layout transition helper in copyBufferToImageFb
This commit is contained in:
parent
ebd067f098
commit
088e4024f5
@ -3056,12 +3056,9 @@ namespace dxvk {
|
||||
? VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT
|
||||
: VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
|
||||
|
||||
m_execAcquires.accessImage(image, vk::makeSubresourceRange(imageSubresource),
|
||||
discard ? VK_IMAGE_LAYOUT_UNDEFINED : image->info().layout,
|
||||
image->info().stages, image->info().access,
|
||||
imageLayout, stages, access);
|
||||
|
||||
m_execAcquires.recordCommands(m_cmd);
|
||||
addImageLayoutTransition(*image, vk::makeSubresourceRange(imageSubresource),
|
||||
imageLayout, stages, access, discard);
|
||||
flushImageLayoutTransitions(DxvkCmdBuffer::ExecBuffer);
|
||||
|
||||
// Bind image for rendering
|
||||
VkRenderingAttachmentInfo attachment = { VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO };
|
||||
|
Loading…
x
Reference in New Issue
Block a user