Skip to content

Commit dfd912e

Browse files
authored
Make DeviceLostReason serializable and deserializable. (#5732)
1 parent cd744ef commit dfd912e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wgpu-types/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7226,6 +7226,7 @@ mod send_sync {
72267226
/// Corresponds to [WebGPU `GPUDeviceLostReason`](https://gpuweb.github.io/gpuweb/#enumdef-gpudevicelostreason).
72277227
#[repr(u8)]
72287228
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
7229+
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
72297230
pub enum DeviceLostReason {
72307231
/// Triggered by driver
72317232
Unknown = 0,

0 commit comments

Comments
 (0)