Skip to content

Commit 77bf9af

Browse files
opsticcwfitzgerald
andauthored
Improve error message by @cwfitzgerald
Co-authored-by: Connor Fitzgerald <[email protected]>
1 parent c1c04ec commit 77bf9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/command/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ pub enum ColorAttachmentError {
625625
mip_level: u32,
626626
depth_or_array_layer: u32,
627627
},
628-
#[error("Color attachment's usage cannot contain {0:?} if StoreOp is {1:?}")]
628+
#[error("Color attachment's usage contains {0:?}. This can only be used with StoreOp::Discard, but the provided store op was {1:?}")]
629629
InvalidUsageForStoreOp(TextureUsages, StoreOp),
630630
}
631631

0 commit comments

Comments
 (0)