mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
[wgpu-core] use the view's format not the texture's format
This fixes a regression introduced in 0a76c0fa84
.
This commit is contained in:
parent
425526828f
commit
b68966eea5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user