Skip to content

Commit

Permalink
Make DeviceLostReason serializable and deserializable.
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev authored May 23, 2024
1 parent 9f74b15 commit 725ee62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 725ee62

Please sign in to comment.