Make DeviceLostReason serializable and deserializable. (#5732)

This commit is contained in:
Samson 2024-05-26 09:07:06 +02:00 committed by GitHub
parent cd744ef68b
commit dfd912ec6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7226,6 +7226,7 @@ mod send_sync {
/// Corresponds to [WebGPU `GPUDeviceLostReason`](https://gpuweb.github.io/gpuweb/#enumdef-gpudevicelostreason). /// Corresponds to [WebGPU `GPUDeviceLostReason`](https://gpuweb.github.io/gpuweb/#enumdef-gpudevicelostreason).
#[repr(u8)] #[repr(u8)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)] #[derive(Debug, Copy, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum DeviceLostReason { pub enum DeviceLostReason {
/// Triggered by driver /// Triggered by driver
Unknown = 0, Unknown = 0,