{"record":{"id":"fa4c7a7a6cad6dd0","repo":"zed-industries/zed","slug":"adapter-device-06x-does-not-support","errorCode":null,"errorMessage":"Adapter {} ({:?}, device={:#06x}) does not support a usable color atlas texture format with usages {:?}. Bgra8Unorm allowed usages: {:?}; Rgba8Unorm allowed usages: {:?}.","messagePattern":"Adapter (.+?) \\((.+?), device=(.+?)\\) does not support a usable color atlas texture format with usages (.+?)\\. Bgra8Unorm allowed usages: (.+?); Rgba8Unorm allowed usages: (.+?)\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui_wgpu/src/wgpu_context.rs","lineNumber":528,"sourceCode":"            return Ok(wgpu::TextureFormat::Rgba8Unorm);\n        }\n        if bgra_features.allowed_usages.contains(required_usages) {\n            return Ok(wgpu::TextureFormat::Bgra8Unorm);\n        }\n        if rgba_features.allowed_usages.contains(required_usages) {\n            let info = adapter.get_info();\n            log::warn!(\n                \"Adapter {} ({:?}) does not support Bgra8Unorm atlas textures with usages {:?}; \\\n                 falling back to Rgba8Unorm atlas textures.\",\n                info.name,\n                info.backend,\n                required_usages,\n            );\n            return Ok(wgpu::TextureFormat::Rgba8Unorm);\n        }\n\n        let info = adapter.get_info();\n        Err(anyhow::anyhow!(\n            \"Adapter {} ({:?}, device={:#06x}) does not support a usable color atlas texture \\\n             format with usages {:?}. Bgra8Unorm allowed usages: {:?}; \\\n             Rgba8Unorm allowed usages: {:?}.\",\n            info.name,\n            info.backend,\n            info.device,\n            required_usages,\n            bgra_features.allowed_usages,\n            rgba_features.allowed_usages,\n        ))\n    }\n    pub fn backend(&self) -> WgpuBackend {\n        self.backend\n    }\n\n    pub fn uses_webgl_instance_data(&self) -> bool {\n        matches!(self.backend, WgpuBackend::Gl) && cfg!(target_family = \"wasm\")\n    }","sourceCodeStart":510,"sourceCodeEnd":546,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/gpui_wgpu/src/wgpu_context.rs#L510-L546","documentation":"Error \"Adapter {} ({:?}, device={:#06x}) does not support a usable color atlas texture format with usages {:?}. Bgra8Unorm allowed usages: {:?}; Rgba8Unorm allowed usages: {:?}.\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/gpui_wgpu/src/wgpu_context.rs:528 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Return a Result with a descriptive error instead of panicking, letting callers degrade gracefully.","Reduce required_usages (e.g. drop TEXTURE_BINDING or RENDER_ATTACHMENT) and retry format selection.","Log adapter name/driver/backend in the error to aid driver-specific bug reports.","Fall back to a smaller atlas or software rendering path if no supported format exists."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}