diff --git a/src/backend/vulkan/CommandBufferVk.cpp b/src/backend/vulkan/CommandBufferVk.cpp index a4be2a9235..449ed2d30a 100644 --- a/src/backend/vulkan/CommandBufferVk.cpp +++ b/src/backend/vulkan/CommandBufferVk.cpp @@ -127,6 +127,11 @@ namespace backend { namespace vulkan { for (uint32_t i = 0; i < renderPass->GetAttachmentCount(); ++i) { Texture* attachment = ToBackend(framebuffer->GetTextureView(i)->GetTexture()); + + if (attachment->GetUsage() & nxt::TextureUsageBit::OutputAttachment) { + continue; + } + attachment->RecordBarrier(commands, attachment->GetUsage(), nxt::TextureUsageBit::OutputAttachment); attachment->UpdateUsageInternal(nxt::TextureUsageBit::OutputAttachment);