diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 4eac7c4c1..943d8eb75 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -7226,6 +7226,7 @@ mod send_sync { /// Corresponds to [WebGPU `GPUDeviceLostReason`](https://gpuweb.github.io/gpuweb/#enumdef-gpudevicelostreason). #[repr(u8)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub enum DeviceLostReason { /// Triggered by driver Unknown = 0,