Updated winit to 0.27.2 for examples and raw-window-handle to 0.5.0
This commit is contained in:
parent
bef3c52706
commit
d30d3255c2
8 changed files with 72 additions and 41 deletions
10
src/error.rs
10
src/error.rs
|
|
@ -1,16 +1,18 @@
|
|||
use std::error::Error;
|
||||
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
|
||||
use raw_window_handle::{HasRawWindowHandle, RawDisplayHandle, RawWindowHandle};
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum SoftBufferError<W: HasRawWindowHandle> {
|
||||
#[error(
|
||||
"The provided window returned an unsupported platform: {human_readable_platform_name}."
|
||||
"The provided window returned an unsupported platform: {human_readable_window_platform_name}, {human_readable_display_platform_name}."
|
||||
)]
|
||||
UnsupportedPlatform {
|
||||
window: W,
|
||||
human_readable_platform_name: &'static str,
|
||||
handle: RawWindowHandle,
|
||||
human_readable_window_platform_name: &'static str,
|
||||
human_readable_display_platform_name: &'static str,
|
||||
window_handle: RawWindowHandle,
|
||||
display_handle: RawDisplayHandle
|
||||
},
|
||||
#[error("Platform error")]
|
||||
PlatformError(Option<String>, Option<Box<dyn Error>>)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue