Skip to main content

map_gpu_error

Function map_gpu_error 

Source
pub fn map_gpu_error(kind: GpuErrorKind, detail: String) -> UiError
Expand description

Map a GpuErrorKind and a detail string to a UiError.

KindMaps to
DeviceLostUiError::Render
OutOfMemoryUiError::Render
SurfaceLostUiError::Render
ShaderCompileUiError::Unsupported