mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Rename StoreOp::Load to StoreOp::Discard
(recent change in spec)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user