From dfd912ec6fd6416495a5de32d8ec8a759324b075 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Sun, 26 May 2024 09:07:06 +0200 Subject: [PATCH] Make `DeviceLostReason` serializable and deserializable. (#5732) --- wgpu-types/src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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,