waw hotfix (#4146)

This commit is contained in:
Kravickas 2026-03-18 22:52:15 +01:00 committed by GitHub
parent 78411c4b8a
commit f245cf76a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -647,6 +647,10 @@ void Image::CopyImageWithBuffer(Image& src_image, vk::Buffer buffer, u64 offset)
cmdbuf.copyBufferToImage(buffer, GetImage(), vk::ImageLayout::eTransferDstOptimal,
buffer_copies);
// Match CopyImage: transition to general so shaders can sample the result.
Transit(vk::ImageLayout::eGeneral,
vk::AccessFlagBits2::eShaderRead | vk::AccessFlagBits2::eTransferRead, {});
}
void Image::CopyMip(Image& src_image, u32 mip, u32 slice) {