Fix 'Read-only attachment with load' error message (#8068)

This commit is contained in:
Lisitsa Nikita 2025-08-09 18:58:32 +03:00 committed by GitHub
parent b1bf444b7a
commit 1b948fbf42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -638,9 +638,9 @@ impl WebGpuError for ColorAttachmentError {
pub enum AttachmentError {
#[error("The format of the depth-stencil attachment ({0:?}) is not a depth-or-stencil format")]
InvalidDepthStencilAttachmentFormat(wgt::TextureFormat),
#[error("Read-only attachment with load")]
#[error("LoadOp must be None for read-only attachments")]
ReadOnlyWithLoad,
#[error("Read-only attachment with store")]
#[error("StoreOp must be None for read-only attachments")]
ReadOnlyWithStore,
#[error("Attachment without load")]
NoLoad,