Skip to content

Commit

Permalink
point out that resolve textures are always written to
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Sep 18, 2023
1 parent 0d56f09 commit 29a0795
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,9 @@ pub struct Operations<V> {
/// How data should be read through this attachment.
pub load: LoadOp<V>,
/// Whether data will be written to through this attachment.
///
/// Note that resolve textures (if specified) are always written to,
/// regardless of this setting.
pub store: StoreOp,
}

Expand Down Expand Up @@ -1113,6 +1116,8 @@ pub struct RenderPassColorAttachment<'tex> {
/// The view to use as an attachment.
pub view: &'tex TextureView,
/// The view that will receive the resolved output if multisampling is used.
///
/// If set, it is always written to, regardless of how [`Self::ops`] is configured.
pub resolve_target: Option<&'tex TextureView>,
/// What operations will be performed on this color attachment.
pub ops: Operations<Color>,
Expand Down

0 comments on commit 29a0795

Please sign in to comment.