mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
WebGPU transient fix (#8532)
This commit is contained in:
parent
05369a6b83
commit
9a975b24de
@ -2303,7 +2303,7 @@ impl dispatch::DeviceInterface for WebDevice {
|
||||
let mapped_desc = webgpu_sys::GpuTextureDescriptor::new(
|
||||
map_texture_format(desc.format),
|
||||
&map_extent_3d(desc.size),
|
||||
desc.usage.bits(),
|
||||
(desc.usage - crate::TextureUsages::TRANSIENT).bits(),
|
||||
);
|
||||
if let Some(label) = desc.label {
|
||||
mapped_desc.set_label(label);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user