diff --git a/dummy/src/lib.rs b/dummy/src/lib.rs index 8b1378917..e0032240a 100644 --- a/dummy/src/lib.rs +++ b/dummy/src/lib.rs @@ -1 +1,3 @@ - +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/wgpu-core/build.rs b/wgpu-core/build.rs index 85b31c28d..5f7d660ab 100644 --- a/wgpu-core/build.rs +++ b/wgpu-core/build.rs @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + fn main() { // Setup cfg aliases cfg_aliases::cfg_aliases! { diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 6ed9622a1..83c1670b7 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -1252,6 +1252,8 @@ impl BufferDescriptor { /// Describes a [`CommandEncoder`]. #[repr(C)] +#[cfg_attr(feature = "trace", derive(Serialize))] +#[cfg_attr(feature = "replay", derive(Deserialize))] #[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct CommandEncoderDescriptor { /// Debug label for the command encoder. This will show up in graphics debuggers for easy identification.