Skip to content

Commit 1b948fb

Browse files
authored
Fix 'Read-only attachment with load' error message (#8068)
1 parent b1bf444 commit 1b948fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wgpu-core/src/command/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,9 @@ impl WebGpuError for ColorAttachmentError {
638638
pub enum AttachmentError {
639639
#[error("The format of the depth-stencil attachment ({0:?}) is not a depth-or-stencil format")]
640640
InvalidDepthStencilAttachmentFormat(wgt::TextureFormat),
641-
#[error("Read-only attachment with load")]
641+
#[error("LoadOp must be None for read-only attachments")]
642642
ReadOnlyWithLoad,
643-
#[error("Read-only attachment with store")]
643+
#[error("StoreOp must be None for read-only attachments")]
644644
ReadOnlyWithStore,
645645
#[error("Attachment without load")]
646646
NoLoad,

0 commit comments

Comments
 (0)