mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-27 16:49:39 +01:00
WebGPU transient fix (#8532)
This commit is contained in:
1 parent
05369a6b83
commit
9a975b24de
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user