From 20b746f0c0d2fd2eb27aebae449beb1b9df27743 Mon Sep 17 00:00:00 2001 From: Tom Schuster Date: Wed, 11 Feb 2026 22:16:28 +0100 Subject: [PATCH] WebGPU: Support TextureFormat::Rgb10a2Uint (#9037) --- wgpu/src/backend/webgpu.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wgpu/src/backend/webgpu.rs b/wgpu/src/backend/webgpu.rs index eddb7130b..b2ac0f3e8 100644 --- a/wgpu/src/backend/webgpu.rs +++ b/wgpu/src/backend/webgpu.rs @@ -234,9 +234,7 @@ fn map_texture_format(texture_format: wgt::TextureFormat) -> webgpu_sys::GpuText TextureFormat::Bgra8UnormSrgb => tf::Bgra8unormSrgb, // Packed 32-bit formats TextureFormat::Rgb9e5Ufloat => tf::Rgb9e5ufloat, - TextureFormat::Rgb10a2Uint => { - unimplemented!("Current version of web_sys is missing {texture_format:?}") - } + TextureFormat::Rgb10a2Uint => tf::Rgb10a2uint, TextureFormat::Rgb10a2Unorm => tf::Rgb10a2unorm, TextureFormat::Rg11b10Ufloat => tf::Rg11b10ufloat, // 64-bit formats