diff --git a/wgpu-core/src/command/render.rs b/wgpu-core/src/command/render.rs index 0af4db7f2b..3676d63113 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -55,8 +55,8 @@ pub enum LoadOp { #[cfg_attr(any(feature = "serial-pass", feature = "trace"), derive(Serialize))] #[cfg_attr(any(feature = "serial-pass", feature = "replay"), derive(Deserialize))] pub enum StoreOp { - /// Clear the render target. If you don't care about the contents of the target, this can be faster. - Clear = 0, + /// Discards the content of the render target. If you don't care about the contents of the target, this can be faster. + Discard = 0, /// Store the result of the renderpass. Store = 1, } @@ -88,7 +88,7 @@ impl PassChannel { }; match self.store_op { StoreOp::Store => ops |= hal::AttachmentOps::STORE, - StoreOp::Clear => (), + StoreOp::Discard => (), }; ops } diff --git a/wgpu/src/backend/direct.rs b/wgpu/src/backend/direct.rs index 5233bffc3d..2c2634a368 100644 --- a/wgpu/src/backend/direct.rs +++ b/wgpu/src/backend/direct.rs @@ -561,7 +561,7 @@ fn map_pass_channel( store_op: if store { wgc::command::StoreOp::Store } else { - wgc::command::StoreOp::Clear + wgc::command::StoreOp::Discard }, clear_value, read_only: false, @@ -574,7 +574,7 @@ fn map_pass_channel( store_op: if store { wgc::command::StoreOp::Store } else { - wgc::command::StoreOp::Clear + wgc::command::StoreOp::Discard }, clear_value: V::default(), read_only: false,