pub fn map_gpu_error(kind: GpuErrorKind, detail: String) -> UiErrorExpand description
Map a GpuErrorKind and a detail string to a UiError.
| Kind | Maps to |
|---|---|
DeviceLost | UiError::Render |
OutOfMemory | UiError::Render |
SurfaceLost | UiError::Render |
ShaderCompile | UiError::Unsupported |