configure context

This commit is contained in:
Jérôme Bousquié
2026-07-03 21:11:43 +02:00
parent 3d6112833d
commit 4fd39d32c6
4 changed files with 114 additions and 1 deletions
+5
View File
@@ -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,
}