From 6e3c7b359ff1ccb6b4de8a423e9d0fb43755bd08 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Wed, 28 Oct 2020 13:35:53 -0400 Subject: [PATCH] Add missing license headers --- dummy/src/lib.rs | 4 +++- wgpu-core/build.rs | 4 ++++ wgpu-types/src/lib.rs | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) 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.