Skip to content

Commit

Permalink
Pass view usages to webgpu backend
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Dec 17, 2024
1 parent b7a8a2b commit 36f7f7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wgpu/src/backend/webgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2673,6 +2673,7 @@ impl dispatch::TextureInterface for WebTexture {
if let Some(label) = desc.label {
mapped.set_label(label);
}
mapped.set_usage(desc.usage.unwrap_or(wgt::TextureUsages::empty()).bits());

let view = self.inner.create_view_with_descriptor(&mapped).unwrap();

Expand Down

0 comments on commit 36f7f7d

Please sign in to comment.