mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Remove MPL 2.0 header in files
This commit is contained in:
parent
a8be371acf
commit
2873ac32d9
@ -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/. */
|
|
||||||
|
|||||||
@ -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.
|
/*! This is a player for WebGPU traces.
|
||||||
!*/
|
!*/
|
||||||
|
|
||||||
|
|||||||
@ -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.
|
/*! This is a player library for WebGPU traces.
|
||||||
*
|
*
|
||||||
* # Notes
|
* # Notes
|
||||||
|
|||||||
@ -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
|
/*! Tester for WebGPU
|
||||||
* It enumerates the available backends on the system,
|
* It enumerates the available backends on the system,
|
||||||
* and run the tests through them.
|
* and run the tests through them.
|
||||||
|
|||||||
@ -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() {
|
fn main() {
|
||||||
// Setup cfg aliases
|
// Setup cfg aliases
|
||||||
cfg_aliases::cfg_aliases! {
|
cfg_aliases::cfg_aliases! {
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
device::{DeviceError, MissingFeatures, SHADER_STAGE_COUNT},
|
device::{DeviceError, MissingFeatures, SHADER_STAGE_COUNT},
|
||||||
hub::Resource,
|
hub::Resource,
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
binding_model::{BindGroup, PipelineLayout},
|
binding_model::{BindGroup, PipelineLayout},
|
||||||
device::SHADER_STAGE_COUNT,
|
device::SHADER_STAGE_COUNT,
|
||||||
|
|||||||
@ -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
|
/*! Render Bundles
|
||||||
|
|
||||||
## Software implementation
|
## Software implementation
|
||||||
|
|||||||
@ -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};
|
use std::{num::NonZeroU32, ops::Range};
|
||||||
|
|
||||||
#[cfg(feature = "trace")]
|
#[cfg(feature = "trace")]
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
binding_model::{BindError, BindGroup, PushConstantUploadError},
|
binding_model::{BindError, BindGroup, PushConstantUploadError},
|
||||||
command::{
|
command::{
|
||||||
|
|||||||
@ -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.
|
/*! Draw structures - shared between render passes and bundles.
|
||||||
!*/
|
!*/
|
||||||
|
|
||||||
|
|||||||
@ -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 bind;
|
||||||
mod bundle;
|
mod bundle;
|
||||||
mod clear;
|
mod clear;
|
||||||
|
|||||||
@ -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 _;
|
use hal::CommandEncoder as _;
|
||||||
|
|
||||||
#[cfg(feature = "trace")]
|
#[cfg(feature = "trace")]
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
binding_model::BindError,
|
binding_model::BindError,
|
||||||
command::{
|
command::{
|
||||||
|
|||||||
@ -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")]
|
#[cfg(feature = "trace")]
|
||||||
use crate::device::trace::Command as TraceCommand;
|
use crate::device::trace::Command as TraceCommand;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|||||||
@ -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;
|
use crate::resource;
|
||||||
|
|
||||||
pub fn is_power_of_two(val: u32) -> bool {
|
pub fn is_power_of_two(val: u32) -> bool {
|
||||||
|
|||||||
@ -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")]
|
#[cfg(feature = "trace")]
|
||||||
use crate::device::trace;
|
use crate::device::trace;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
binding_model, command, conv,
|
binding_model, command, conv,
|
||||||
device::life::WaitIdleError,
|
device::life::WaitIdleError,
|
||||||
|
|||||||
@ -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")]
|
#[cfg(feature = "trace")]
|
||||||
use crate::device::trace::Action;
|
use crate::device::trace::Action;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|||||||
@ -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 crate::id;
|
||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
#[cfg(feature = "trace")]
|
#[cfg(feature = "trace")]
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
binding_model::{BindGroup, BindGroupLayout, PipelineLayout},
|
binding_model::{BindGroup, BindGroupLayout, PipelineLayout},
|
||||||
command::{CommandBuffer, RenderBundle},
|
command::{CommandBuffer, RenderBundle},
|
||||||
|
|||||||
@ -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 crate::{Epoch, Index};
|
||||||
use std::{cmp::Ordering, fmt, marker::PhantomData, num::NonZeroU64};
|
use std::{cmp::Ordering, fmt, marker::PhantomData, num::NonZeroU64};
|
||||||
use wgt::Backend;
|
use wgt::Backend;
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
device::{Device, DeviceDescriptor},
|
device::{Device, DeviceDescriptor},
|
||||||
hub::{Global, GlobalIdentityHandlerFactory, HalApi, Input, Token},
|
hub::{Global, GlobalIdentityHandlerFactory, HalApi, Input, Token},
|
||||||
|
|||||||
@ -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.
|
/*! This library safely implements WebGPU on native platforms.
|
||||||
* It is designed for integration into browsers, as well as wrapping
|
* It is designed for integration into browsers, as well as wrapping
|
||||||
* into other language-specific user-friendly libraries.
|
* into other language-specific user-friendly libraries.
|
||||||
|
|||||||
@ -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 {
|
macro_rules! backends_map {
|
||||||
// one let statement per backend with mapped data
|
// one let statement per backend with mapped data
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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;
|
use std::ops::Range;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
binding_model::{CreateBindGroupLayoutError, CreatePipelineLayoutError},
|
binding_model::{CreateBindGroupLayoutError, CreatePipelineLayoutError},
|
||||||
device::{DeviceError, MissingFeatures, RenderPassContext},
|
device::{DeviceError, MissingFeatures, RenderPassContext},
|
||||||
|
|||||||
@ -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::{
|
use crate::{
|
||||||
device::{DeviceError, HostMap, MissingFeatures},
|
device::{DeviceError, HostMap, MissingFeatures},
|
||||||
hub::Resource,
|
hub::Resource,
|
||||||
|
|||||||
@ -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.
|
/*! Swap chain management.
|
||||||
|
|
||||||
## Lifecycle
|
## Lifecycle
|
||||||
|
|||||||
@ -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 super::{PendingTransition, ResourceState, Unit};
|
||||||
use crate::id::{BufferId, Valid};
|
use crate::id::{BufferId, Valid};
|
||||||
use hal::BufferUse;
|
use hal::BufferUse;
|
||||||
|
|||||||
@ -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 buffer;
|
||||||
mod range;
|
mod range;
|
||||||
mod texture;
|
mod texture;
|
||||||
|
|||||||
@ -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 smallvec::SmallVec;
|
||||||
|
|
||||||
use std::{cmp::Ordering, fmt::Debug, iter, ops::Range, slice::Iter};
|
use std::{cmp::Ordering, fmt::Debug, iter, ops::Range, slice::Iter};
|
||||||
|
|||||||
@ -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 super::{range::RangedStates, PendingTransition, ResourceState, Unit};
|
||||||
use crate::id::{TextureId, Valid};
|
use crate::id::{TextureId, Valid};
|
||||||
use hal::TextureUse;
|
use hal::TextureUse;
|
||||||
|
|||||||
@ -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 crate::{binding_model::BindEntryMap, FastHashMap, FastHashSet};
|
||||||
use naga::valid::GlobalUse;
|
use naga::valid::GlobalUse;
|
||||||
use std::{collections::hash_map::Entry, fmt};
|
use std::{collections::hash_map::Entry, fmt};
|
||||||
|
|||||||
@ -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.
|
/*! This library describes the internal unsafe graphics abstraction API.
|
||||||
* It follows WebGPU for the most part, re-using wgpu-types,
|
* It follows WebGPU for the most part, re-using wgpu-types,
|
||||||
* with the following deviations:
|
* with the following deviations:
|
||||||
|
|||||||
@ -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 library describes the API surface of WebGPU that is agnostic of the backend.
|
||||||
* This API is used for targeting both Web and Native.
|
* This API is used for targeting both Web and Native.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user