Rename StoreOp::Load to StoreOp::Discard

(recent change in spec)
This commit is contained in:
Andreas Reich
2021-07-12 18:06:15 +02:00
parent b5a73b6a80
commit f5a4cbc0e1
2 changed files with 5 additions and 5 deletions

View File

@@ -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<V> PassChannel<V> {
};
match self.store_op {
StoreOp::Store => ops |= hal::AttachmentOps::STORE,
StoreOp::Clear => (),
StoreOp::Discard => (),
};
ops
}

View File

@@ -561,7 +561,7 @@ fn map_pass_channel<V: Copy + Default>(
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<V: Copy + Default>(
store_op: if store {
wgc::command::StoreOp::Store
} else {
wgc::command::StoreOp::Clear
wgc::command::StoreOp::Discard
},
clear_value: V::default(),
read_only: false,