configure context
This commit is contained in:
@@ -45,4 +45,9 @@ pub enum WsgError {
|
||||
/// Caller: `Context::new()` after `Instance::create_surface()`.
|
||||
#[error("Failed to create rendering surface")]
|
||||
SurfaceCreation(wgpu::CreateSurfaceError),
|
||||
|
||||
/// The surface is incompatible — no SRGB texture format and alpha mode are available on the device.
|
||||
/// Caller: `Context::configure()` when selecting a render format/alpha mode from surface capabilities.
|
||||
#[error("No compatible render format or alpha mode found for the surface")]
|
||||
SurfaceIncompatible,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user