[wgpu-core] use the view's format not the texture's format

This fixes a regression introduced in 0a76c0fa84.
This commit is contained in:
teoxoy 2024-07-10 12:32:23 +02:00 committed by Teodor Tanasoaia
parent 425526828f
commit b68966eea5

View File

@ -1155,7 +1155,7 @@ impl<'d, A: HalApi> RenderPassInfo<'d, A> {
let attachment_formats = AttachmentData {
colors: color_attachments
.iter()
.map(|at| at.as_ref().map(|at| at.view.desc.texture_format))
.map(|at| at.as_ref().map(|at| at.view.desc.format))
.collect(),
resolves: color_attachments
.iter()