Make DeviceLostReason serializable and deserializable. (#5732)

This commit is contained in:
Samson authored and GitHub committed 2024-05-26 09:07:06 +02:00
1 parent cd744ef68b
commit dfd912ec6f
1 file changed
+1
+1
View File
@@ -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,