diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index fd85fd6a775..228ba2387a7 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -695,6 +695,16 @@ impl Device { if desc.format == *format { continue; } + match (desc.format, *format) { + ( + TextureFormat::NV12, + TextureFormat::R8Unorm + | TextureFormat::R8Uint + | TextureFormat::Rg8Unorm + | TextureFormat::Rg8Uint, + ) => continue, + _ => {} + } if desc.format.remove_srgb_suffix() != format.remove_srgb_suffix() { return Err(CreateTextureError::InvalidViewFormat(*format, desc.format)); }