From 2873ac32d91cc49c2c1117a3670fec9b0920336a Mon Sep 17 00:00:00 2001 From: Gordon-F Date: Sat, 19 Jun 2021 21:06:08 +0300 Subject: [PATCH] Remove MPL 2.0 header in files --- dummy/src/lib.rs | 4 +--- player/src/bin/play.rs | 4 ---- player/src/lib.rs | 4 ---- player/tests/test.rs | 4 ---- wgpu-core/build.rs | 4 ---- wgpu-core/src/binding_model.rs | 4 ---- wgpu-core/src/command/bind.rs | 4 ---- wgpu-core/src/command/bundle.rs | 4 ---- wgpu-core/src/command/clear.rs | 4 ---- wgpu-core/src/command/compute.rs | 4 ---- wgpu-core/src/command/draw.rs | 4 ---- wgpu-core/src/command/mod.rs | 4 ---- wgpu-core/src/command/query.rs | 4 ---- wgpu-core/src/command/render.rs | 4 ---- wgpu-core/src/command/transfer.rs | 4 ---- wgpu-core/src/conv.rs | 4 ---- wgpu-core/src/device/life.rs | 4 ---- wgpu-core/src/device/mod.rs | 4 ---- wgpu-core/src/device/queue.rs | 4 ---- wgpu-core/src/device/trace.rs | 4 ---- wgpu-core/src/hub.rs | 4 ---- wgpu-core/src/id.rs | 4 ---- wgpu-core/src/instance.rs | 4 ---- wgpu-core/src/lib.rs | 4 ---- wgpu-core/src/macros.rs | 4 ---- wgpu-core/src/memory_init_tracker.rs | 4 ---- wgpu-core/src/pipeline.rs | 4 ---- wgpu-core/src/resource.rs | 4 ---- wgpu-core/src/swap_chain.rs | 4 ---- wgpu-core/src/track/buffer.rs | 4 ---- wgpu-core/src/track/mod.rs | 4 ---- wgpu-core/src/track/range.rs | 4 ---- wgpu-core/src/track/texture.rs | 4 ---- wgpu-core/src/validation.rs | 4 ---- wgpu-hal/src/lib.rs | 4 ---- wgpu-types/src/lib.rs | 4 ---- 36 files changed, 1 insertion(+), 143 deletions(-) diff --git a/dummy/src/lib.rs b/dummy/src/lib.rs index e0032240a4..8b13789179 100644 --- a/dummy/src/lib.rs +++ b/dummy/src/lib.rs @@ -1,3 +1 @@ -/* 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/player/src/bin/play.rs b/player/src/bin/play.rs index 64b6192b71..4810055184 100644 --- a/player/src/bin/play.rs +++ b/player/src/bin/play.rs @@ -1,7 +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/. */ - /*! This is a player for WebGPU traces. !*/ diff --git a/player/src/lib.rs b/player/src/lib.rs index 881307b7c5..48fd018a36 100644 --- a/player/src/lib.rs +++ b/player/src/lib.rs @@ -1,7 +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/. */ - /*! This is a player library for WebGPU traces. * * # Notes diff --git a/player/tests/test.rs b/player/tests/test.rs index 630545c36f..f19fa9d995 100644 --- a/player/tests/test.rs +++ b/player/tests/test.rs @@ -1,7 +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/. */ - /*! Tester for WebGPU * It enumerates the available backends on the system, * and run the tests through them. diff --git a/wgpu-core/build.rs b/wgpu-core/build.rs index f1079ab715..ad2c8d8364 100644 --- a/wgpu-core/build.rs +++ b/wgpu-core/build.rs @@ -1,7 +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/. */ - fn main() { // Setup cfg aliases cfg_aliases::cfg_aliases! { diff --git a/wgpu-core/src/binding_model.rs b/wgpu-core/src/binding_model.rs index 902227b968..76be6b52ae 100644 --- a/wgpu-core/src/binding_model.rs +++ b/wgpu-core/src/binding_model.rs @@ -1,7 +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/. */ - use crate::{ device::{DeviceError, MissingFeatures, SHADER_STAGE_COUNT}, hub::Resource, diff --git a/wgpu-core/src/command/bind.rs b/wgpu-core/src/command/bind.rs index 43d73ce45c..da7ef47e47 100644 --- a/wgpu-core/src/command/bind.rs +++ b/wgpu-core/src/command/bind.rs @@ -1,7 +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/. */ - use crate::{ binding_model::{BindGroup, PipelineLayout}, device::SHADER_STAGE_COUNT, diff --git a/wgpu-core/src/command/bundle.rs b/wgpu-core/src/command/bundle.rs index f9e07c8a04..1320545a40 100644 --- a/wgpu-core/src/command/bundle.rs +++ b/wgpu-core/src/command/bundle.rs @@ -1,7 +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/. */ - /*! Render Bundles ## Software implementation diff --git a/wgpu-core/src/command/clear.rs b/wgpu-core/src/command/clear.rs index 1f1274128b..a3b7e47ad4 100644 --- a/wgpu-core/src/command/clear.rs +++ b/wgpu-core/src/command/clear.rs @@ -1,7 +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/. */ - use std::{num::NonZeroU32, ops::Range}; #[cfg(feature = "trace")] diff --git a/wgpu-core/src/command/compute.rs b/wgpu-core/src/command/compute.rs index d3980100ff..d39994d9da 100644 --- a/wgpu-core/src/command/compute.rs +++ b/wgpu-core/src/command/compute.rs @@ -1,7 +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/. */ - use crate::{ binding_model::{BindError, BindGroup, PushConstantUploadError}, command::{ diff --git a/wgpu-core/src/command/draw.rs b/wgpu-core/src/command/draw.rs index 8ea2c7b784..6f19b41a48 100644 --- a/wgpu-core/src/command/draw.rs +++ b/wgpu-core/src/command/draw.rs @@ -1,7 +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/. */ - /*! Draw structures - shared between render passes and bundles. !*/ diff --git a/wgpu-core/src/command/mod.rs b/wgpu-core/src/command/mod.rs index 19f78acdd6..d40b99132b 100644 --- a/wgpu-core/src/command/mod.rs +++ b/wgpu-core/src/command/mod.rs @@ -1,7 +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/. */ - mod bind; mod bundle; mod clear; diff --git a/wgpu-core/src/command/query.rs b/wgpu-core/src/command/query.rs index 57f67b06e2..9a5750d6f5 100644 --- a/wgpu-core/src/command/query.rs +++ b/wgpu-core/src/command/query.rs @@ -1,7 +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/. */ - use hal::CommandEncoder as _; #[cfg(feature = "trace")] diff --git a/wgpu-core/src/command/render.rs b/wgpu-core/src/command/render.rs index 8c195fc5fd..404652aebd 100644 --- a/wgpu-core/src/command/render.rs +++ b/wgpu-core/src/command/render.rs @@ -1,7 +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/. */ - use crate::{ binding_model::BindError, command::{ diff --git a/wgpu-core/src/command/transfer.rs b/wgpu-core/src/command/transfer.rs index 5b13badcf4..dbfea509fe 100644 --- a/wgpu-core/src/command/transfer.rs +++ b/wgpu-core/src/command/transfer.rs @@ -1,7 +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/. */ - #[cfg(feature = "trace")] use crate::device::trace::Command as TraceCommand; use crate::{ diff --git a/wgpu-core/src/conv.rs b/wgpu-core/src/conv.rs index 4b9336db40..90d25abb7a 100644 --- a/wgpu-core/src/conv.rs +++ b/wgpu-core/src/conv.rs @@ -1,7 +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/. */ - use crate::resource; pub fn is_power_of_two(val: u32) -> bool { diff --git a/wgpu-core/src/device/life.rs b/wgpu-core/src/device/life.rs index dbfca043b5..1abc6d8ade 100644 --- a/wgpu-core/src/device/life.rs +++ b/wgpu-core/src/device/life.rs @@ -1,7 +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/. */ - #[cfg(feature = "trace")] use crate::device::trace; use crate::{ diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 39a9ea0ba9..c04797f1d4 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -1,7 +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/. */ - use crate::{ binding_model, command, conv, device::life::WaitIdleError, diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 945c6bb6e0..58cac7e72a 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -1,7 +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/. */ - #[cfg(feature = "trace")] use crate::device::trace::Action; use crate::{ diff --git a/wgpu-core/src/device/trace.rs b/wgpu-core/src/device/trace.rs index ce4571db88..a87e843701 100644 --- a/wgpu-core/src/device/trace.rs +++ b/wgpu-core/src/device/trace.rs @@ -1,7 +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/. */ - use crate::id; use std::ops::Range; #[cfg(feature = "trace")] diff --git a/wgpu-core/src/hub.rs b/wgpu-core/src/hub.rs index 17dd39e746..2315d1915e 100644 --- a/wgpu-core/src/hub.rs +++ b/wgpu-core/src/hub.rs @@ -1,7 +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/. */ - use crate::{ binding_model::{BindGroup, BindGroupLayout, PipelineLayout}, command::{CommandBuffer, RenderBundle}, diff --git a/wgpu-core/src/id.rs b/wgpu-core/src/id.rs index b9d5497758..4d26e11618 100644 --- a/wgpu-core/src/id.rs +++ b/wgpu-core/src/id.rs @@ -1,7 +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/. */ - use crate::{Epoch, Index}; use std::{cmp::Ordering, fmt, marker::PhantomData, num::NonZeroU64}; use wgt::Backend; diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index b793b3d871..cf4a6f3ecb 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -1,7 +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/. */ - use crate::{ device::{Device, DeviceDescriptor}, hub::{Global, GlobalIdentityHandlerFactory, HalApi, Input, Token}, diff --git a/wgpu-core/src/lib.rs b/wgpu-core/src/lib.rs index 48e08bc2dc..5a6d6ab2c4 100644 --- a/wgpu-core/src/lib.rs +++ b/wgpu-core/src/lib.rs @@ -1,7 +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/. */ - /*! This library safely implements WebGPU on native platforms. * It is designed for integration into browsers, as well as wrapping * into other language-specific user-friendly libraries. diff --git a/wgpu-core/src/macros.rs b/wgpu-core/src/macros.rs index edaed6ba9c..8b662ddc4f 100644 --- a/wgpu-core/src/macros.rs +++ b/wgpu-core/src/macros.rs @@ -1,7 +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/. */ - macro_rules! backends_map { // one let statement per backend with mapped data ( diff --git a/wgpu-core/src/memory_init_tracker.rs b/wgpu-core/src/memory_init_tracker.rs index b24046524f..771498f224 100644 --- a/wgpu-core/src/memory_init_tracker.rs +++ b/wgpu-core/src/memory_init_tracker.rs @@ -1,7 +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/. */ - use std::ops::Range; #[derive(Debug, Clone, Copy)] diff --git a/wgpu-core/src/pipeline.rs b/wgpu-core/src/pipeline.rs index f853ad0c14..d1ce370dd7 100644 --- a/wgpu-core/src/pipeline.rs +++ b/wgpu-core/src/pipeline.rs @@ -1,7 +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/. */ - use crate::{ binding_model::{CreateBindGroupLayoutError, CreatePipelineLayoutError}, device::{DeviceError, MissingFeatures, RenderPassContext}, diff --git a/wgpu-core/src/resource.rs b/wgpu-core/src/resource.rs index 9ee45db1f9..4d1e382a99 100644 --- a/wgpu-core/src/resource.rs +++ b/wgpu-core/src/resource.rs @@ -1,7 +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/. */ - use crate::{ device::{DeviceError, HostMap, MissingFeatures}, hub::Resource, diff --git a/wgpu-core/src/swap_chain.rs b/wgpu-core/src/swap_chain.rs index 46fcfb24d5..335d11d477 100644 --- a/wgpu-core/src/swap_chain.rs +++ b/wgpu-core/src/swap_chain.rs @@ -1,7 +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/. */ - /*! Swap chain management. ## Lifecycle diff --git a/wgpu-core/src/track/buffer.rs b/wgpu-core/src/track/buffer.rs index c0cdee2060..9922774e6b 100644 --- a/wgpu-core/src/track/buffer.rs +++ b/wgpu-core/src/track/buffer.rs @@ -1,7 +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/. */ - use super::{PendingTransition, ResourceState, Unit}; use crate::id::{BufferId, Valid}; use hal::BufferUse; diff --git a/wgpu-core/src/track/mod.rs b/wgpu-core/src/track/mod.rs index c6739f5a3b..93ab374d2f 100644 --- a/wgpu-core/src/track/mod.rs +++ b/wgpu-core/src/track/mod.rs @@ -1,7 +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/. */ - mod buffer; mod range; mod texture; diff --git a/wgpu-core/src/track/range.rs b/wgpu-core/src/track/range.rs index 8ba4be7068..f3755c57a7 100644 --- a/wgpu-core/src/track/range.rs +++ b/wgpu-core/src/track/range.rs @@ -1,7 +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/. */ - use smallvec::SmallVec; use std::{cmp::Ordering, fmt::Debug, iter, ops::Range, slice::Iter}; diff --git a/wgpu-core/src/track/texture.rs b/wgpu-core/src/track/texture.rs index 2f01c72a1a..242292c363 100644 --- a/wgpu-core/src/track/texture.rs +++ b/wgpu-core/src/track/texture.rs @@ -1,7 +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/. */ - use super::{range::RangedStates, PendingTransition, ResourceState, Unit}; use crate::id::{TextureId, Valid}; use hal::TextureUse; diff --git a/wgpu-core/src/validation.rs b/wgpu-core/src/validation.rs index 6802ba0fcc..721d3d09d2 100644 --- a/wgpu-core/src/validation.rs +++ b/wgpu-core/src/validation.rs @@ -1,7 +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/. */ - use crate::{binding_model::BindEntryMap, FastHashMap, FastHashSet}; use naga::valid::GlobalUse; use std::{collections::hash_map::Entry, fmt}; diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index 4142406737..7e3480366b 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -1,7 +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/. */ - /*! This library describes the internal unsafe graphics abstraction API. * It follows WebGPU for the most part, re-using wgpu-types, * with the following deviations: diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 05b24a7627..e82546a695 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -1,7 +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/. */ - /*! This library describes the API surface of WebGPU that is agnostic of the backend. * This API is used for targeting both Web and Native. */