Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arcanization of wgpu core resources #3626

Merged
merged 204 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
548cb51
First Arcanization no refcount, no lifetime
gents83 Mar 30, 2023
d685726
Keeping Arc only outside and not inside resource
gents83 Mar 30, 2023
ec28fc3
Merge pull request #1 from gfx-rs/master
gents83 Mar 31, 2023
44413ca
Fixing clippy errors
gents83 Apr 1, 2023
95141e7
Merge branch 'master' of https://github.com/gents83/wgpu
gents83 Apr 1, 2023
a9b3bcb
Removing unneeded replay feature
gents83 Apr 1, 2023
17b8e71
string::new doesn't take any arguments
Elabajaba Apr 2, 2023
c7e1c54
Changed doc to align to moved files
gents83 Apr 2, 2023
60d3070
Merge pull request #2 from Elabajaba/arc-release-mode-fix
gents83 Apr 2, 2023
ecd0cc2
Correct texture view creation for render pass
gents83 Apr 2, 2023
a1b6b81
Merge pull request #3 from gfx-rs/master
gents83 Apr 2, 2023
a4b83a5
Fixing staging buffer issue
gents83 Apr 4, 2023
4961a49
Merge branch 'master' of https://github.com/gents83/wgpu
gents83 Apr 4, 2023
aa4424e
Merge pull request #4 from gfx-rs/master
gents83 Apr 4, 2023
e1c9b91
Fix compiler errors for Metal backend
niklaskorz Apr 7, 2023
9077b43
Fix usage of active_submission_index.fetch_add
niklaskorz Apr 7, 2023
f72ff9d
Fix release build
niklaskorz Apr 7, 2023
669636a
Merge pull request #5 from niklaskorz/master
gents83 Apr 7, 2023
c7b08db
Merge pull request #6 from niklaskorz/atomic-fetch-add
gents83 Apr 7, 2023
c935ea2
Merge pull request #7 from niklaskorz/debug-assertions
gents83 Apr 7, 2023
b8e08db
Merge branch 'trunk' into master
gents83 Apr 7, 2023
0fc93d8
Fixing integration issues
gents83 Apr 7, 2023
2c09b19
Fixing doc, fmt and gles
gents83 Apr 7, 2023
cda59c6
Merge branch 'trunk' into master
gents83 Apr 7, 2023
fd92db5
Missing doc changes
gents83 Apr 7, 2023
b6a5d2a
Added _ due to non-exauhstive pattern addition
gents83 Apr 7, 2023
ea3120e
Avoid using `WasmAbi` functions on WebGPU backend
grovesNL Apr 8, 2023
c6c8259
Clippy
grovesNL Apr 8, 2023
42b1199
Changelog entry
grovesNL Apr 8, 2023
96e1f50
Remove wrongly created license in subfolders
gents83 Apr 9, 2023
e12a5f2
Merge pull request #9 from grovesNL/dynamic-dispatch-workaround
gents83 Apr 9, 2023
df9801b
Updating according to trace::Action::CreateTexture
gents83 Apr 9, 2023
b9d3c59
Moving set_id from registry to storage
gents83 Apr 9, 2023
1c2112f
Expose cleare fence for device polling
gents83 Apr 11, 2023
a9518cd
Merge branch 'trunk' into master
gents83 Apr 11, 2023
4a2ff45
Merge pull request #10 from gfx-rs/trunk
gents83 Apr 12, 2023
ffa0802
Fix format
gents83 Apr 12, 2023
5875645
Merge branch 'master' of https://github.com/gents83/wgpu
gents83 Apr 12, 2023
b0a80ea
Merge branch 'trunk' into master
gents83 Apr 15, 2023
ea90aa4
Integrating (#3686)
gents83 Apr 15, 2023
2f18676
Fixing integration
gents83 Apr 15, 2023
de80b11
Fixing wat on gles
gents83 Apr 15, 2023
e49aff2
Bumping extern libs
gents83 Apr 15, 2023
73fecae
Active submission will drop only its own stuff
gents83 Apr 16, 2023
faf3efb
Increasing wait time for multithreaded test
gents83 Apr 16, 2023
a1f8651
Reverting test and reducing cleanup time
gents83 Apr 16, 2023
6bc0ecf
Separating info from debug to get debug details
gents83 Apr 25, 2023
cd9022a
Merge branch 'trunk' into master
gents83 Apr 25, 2023
f2736e5
Fix merge issue
gents83 Apr 25, 2023
4529f73
Fix clippy wasm
gents83 Apr 25, 2023
8d6f531
Merge pull request #11 from gfx-rs/trunk
gents83 Apr 29, 2023
fbd23cc
Fixing temp suspected clear order
gents83 Apr 29, 2023
6c370d4
Merge branch 'master' of https://github.com/gents83/wgpu
gents83 Apr 29, 2023
2a3c78a
Adding drop to staging buffer
gents83 Apr 29, 2023
011ed1b
Better log info
gents83 Apr 29, 2023
404e888
Active submission index incremented only at submit
gents83 Apr 30, 2023
ddc015c
Fix fmt
gents83 Apr 30, 2023
be6cb83
Merge pull request #12 from gfx-rs/trunk
gents83 Apr 30, 2023
c5280f5
Merge branch 'trunk' into master
gents83 May 4, 2023
7778e1a
Drain submissions again
gents83 May 4, 2023
feae1b5
Merge branch 'trunk' into master
gents83 May 20, 2023
4640ec0
Integrating fix multiview rendering in resource.rs
gents83 May 20, 2023
15e3145
Readding licenses and helper functions
gents83 May 20, 2023
a0af81a
Fixing format
gents83 May 20, 2023
106b51b
Fixing wrong merge of create_render_bundle_error
gents83 May 23, 2023
dbd708e
Merge pull request #14 from gfx-rs/trunk
gents83 May 23, 2023
07c14e6
Use symlinks for wgpu{,-core,-hal,-types}/LICENSE.{APACHE,MIT}.
jimblandy May 22, 2023
3a5b0bd
Merge branch 'trunk' into arcanization
jimblandy May 24, 2023
cf74dc2
Merge branch 'trunk' into arcanization
jimblandy May 24, 2023
a07a1b3
Remove ResourceMetadataProvider::Resource and logs
gents83 May 27, 2023
9af2d0c
Adding some doc info
gents83 May 27, 2023
c498c28
Add missing dependency device\adapter
gents83 Jun 5, 2023
f9acbd3
Removing useless typo code
gents83 Jun 5, 2023
0bffddb
Merge branch 'trunk' into master
gents83 Jun 5, 2023
a3f4643
Fix merge conflicts errors
gents83 Jun 5, 2023
bfca2cd
Fix format
gents83 Jun 5, 2023
8850c89
Removing wait of specific submission index
gents83 Jun 6, 2023
9b47cb3
Merge branch 'trunk' into master
gents83 Jun 6, 2023
3a6fdc7
rustup update
gents83 Jun 6, 2023
0ebf406
Merge branch 'trunk' into master
gents83 Jun 6, 2023
e0e2297
Document abandoned buffer conditions more explicitly.
jimblandy May 31, 2023
252fbf3
Merge branch 'trunk' into master
gents83 Jun 10, 2023
8bdc4b9
Fixing CI
gents83 Jun 10, 2023
8c0de8c
Merge branch 'trunk' into master
gents83 Jun 17, 2023
dcf751b
Move trackers locks after the pending_writes lock
gents83 Jun 17, 2023
e219604
Adding additional doc
gents83 Jun 17, 2023
2ce35f1
Adding deadlock detection in tests
gents83 Jun 17, 2023
c6e9de8
Fixed wrong check
gents83 Jun 17, 2023
5b34df5
Merge branch 'trunk' into master
gents83 Jun 24, 2023
7469572
Updating changelog
gents83 Jun 24, 2023
91d872e
Merge branch 'trunk' into master
gents83 Jul 7, 2023
f2ca336
Using mutex on pending_writes
Jul 7, 2023
9243a92
Pending writes locked before textures transitions
Jul 7, 2023
b2113b6
Merge branch 'trunk' into master
gents83 Jul 15, 2023
52cf370
Fixing merge integration resolve conflicts
Jul 15, 2023
71b2af6
Fix fmt
Jul 15, 2023
a65bb07
Adding more info on resource tracking
gents83 Jul 24, 2023
dcea4dd
Merge branch 'trunk' into master
gents83 Jul 24, 2023
633035f
Fix fmt
gents83 Jul 24, 2023
94801a5
Aligning to workspace
gents83 Jul 24, 2023
94180a3
Merge branch 'trunk' into master
gents83 Jul 27, 2023
6babd06
Clearing temp_suspected once moved to suspected
gents83 Jul 27, 2023
2e0baad
Merge branch 'trunk' into master
gents83 Jul 27, 2023
d5943e7
Restoring Action::CreateTexture for Player
gents83 Jul 31, 2023
0cb20d4
Merge branch 'trunk' into master
gents83 Jul 31, 2023
c7ed2c1
Merge branch 'trunk' into master
gents83 Aug 1, 2023
b763431
Fix memleaks due to duplicated items + drain usage
gents83 Aug 1, 2023
7b28fe4
Adding proper release of surface texture view
gents83 Aug 2, 2023
8da3493
Merge branch 'trunk' into master
gents83 Aug 17, 2023
481c914
Fix integration issues
gents83 Aug 17, 2023
1312b26
Using always is_unique()
gents83 Aug 17, 2023
6690fe4
Queue is now keeping device alive till needed
gents83 Aug 18, 2023
4b93702
RenderBundle has strong reference to its device
gents83 Aug 18, 2023
a483132
Removing check for test on wasm
gents83 Aug 18, 2023
27d2efa
Merge branch 'trunk' into master
gents83 Aug 18, 2023
586c1bb
Apply cargo fmt
gents83 Aug 18, 2023
b175774
Let Presentation hold a strong reference to its Device.
jimblandy Aug 19, 2023
028726e
Merge pull request #15 from jimblandy/presentation-arc-device
gents83 Aug 19, 2023
f71b2dc
Introducing AnySurface
gents83 Aug 19, 2023
007a53d
Fixing clippy
gents83 Aug 19, 2023
4f46d49
Merge branch 'trunk' into master
gents83 Aug 19, 2023
c108c9a
When clearing a Hub, remember to remove the surface's presentation.
jimblandy Aug 19, 2023
e65bdd2
Improving error msg
gents83 Aug 25, 2023
38eb9ac
TypeId should be debuggable
gents83 Aug 25, 2023
50e326d
Merge branch 'master' of https://github.com/gents83/wgpu into wgpu/ma…
gents83 Aug 25, 2023
f974beb
Improving log
gents83 Aug 25, 2023
ad03f83
Merge branch 'trunk' into master
gents83 Aug 26, 2023
579edb6
Fix integration issues
gents83 Aug 26, 2023
b9b1556
Removing valid and adding is_valid
gents83 Aug 26, 2023
865910f
Merge branch 'master' into Creating-AnySurface
gents83 Aug 26, 2023
9e2a0ed
Merge pull request #16 from gents83/Creating-AnySurface
gents83 Aug 26, 2023
da588ff
Keep resources in registry till user release them
gents83 Aug 26, 2023
1765710
First anysurface will win
gents83 Aug 26, 2023
c4f150d
Fixing locking
gents83 Aug 26, 2023
4f1bcab
Fix compilation error
gents83 Aug 26, 2023
969e411
Fixing wasm32
gents83 Aug 27, 2023
27d5a68
Fix wasm compilation
gents83 Aug 27, 2023
7394fd7
Storage is now only for user - wgpu use arcs
gents83 Sep 8, 2023
c235de4
Merge branch 'trunk' into master
gents83 Sep 8, 2023
490b2b7
Fixing integration issues and merge conflicts
gents83 Sep 8, 2023
451dfba
Fixing clippy wasm32
gents83 Sep 8, 2023
6839dba
Fixing mem_leaks on wasm
gents83 Sep 8, 2023
058c8af
Updating doc
gents83 Sep 8, 2023
6a66746
Fix format
gents83 Sep 9, 2023
f83fdad
Fix fmt
gents83 Sep 9, 2023
c5aa05f
Improving resource dropping in device poll
gents83 Sep 10, 2023
9a24345
Add release of buffer and description on texture
gents83 Sep 13, 2023
e52c747
Fix format
gents83 Sep 16, 2023
90c118d
Merge branch 'trunk' into master
gents83 Sep 16, 2023
45a618f
Fix merge conflicts and improve id mngmnt
gents83 Sep 16, 2023
88dc35c
Fixing surface present issue
gents83 Sep 18, 2023
8ca3cb0
Fixing texture leaking due to clear view
gents83 Sep 19, 2023
0220754
Merge branch 'trunk' into master
gents83 Sep 19, 2023
d1fe60c
QuerySet error drop not failing
gents83 Sep 19, 2023
fb13cc8
Better resource triage_suspected
gents83 Sep 21, 2023
ac30622
Fix test
gents83 Sep 22, 2023
4e68258
Fix format
gents83 Sep 22, 2023
0eac205
Improving tracker management
gents83 Sep 23, 2023
3530dcb
Releasing bind group resources fix missing leaks
gents83 Sep 23, 2023
b2d5462
Merge branch 'trunk' into master
gents83 Oct 1, 2023
d4a8689
Resolve merge conflicts
gents83 Oct 1, 2023
af51987
Fixing command order issue
gents83 Oct 7, 2023
c66473a
Merge branch 'trunk' into master
gents83 Oct 7, 2023
877ef94
Fix integration and simply layout groups dedup
gents83 Oct 7, 2023
a7de4da
Fixing clippy doc
gents83 Oct 7, 2023
b31ddb0
Merge branch 'trunk' into master
gents83 Oct 8, 2023
5d08672
Fix clippy fmt
gents83 Oct 8, 2023
b7e518a
Fix wrong checks on is_valid and is_incompatible
gents83 Oct 8, 2023
b997eaf
Merge branch 'trunk' into master
gents83 Oct 9, 2023
cbf8860
Applying cargo fmt
gents83 Oct 9, 2023
cc4d15c
Merge branch 'trunk' into master
gents83 Oct 9, 2023
804f1da
Fix integration issues
gents83 Oct 9, 2023
b33c1c2
Merge branch 'trunk' into master
gents83 Oct 9, 2023
092fd3e
Merge branch 'trunk' into master
gents83 Oct 12, 2023
41f8171
Fix format
gents83 Oct 12, 2023
ad0109a
Fix integration
gents83 Oct 12, 2023
dbde6dd
Fix merge
gents83 Oct 12, 2023
2af22cd
Fix compilation
gents83 Oct 12, 2023
d5fdf2c
Merge branch 'trunk' into master
gents83 Oct 14, 2023
22b1471
Fix integration
gents83 Oct 14, 2023
2fb0218
Removing wrong merge
gents83 Oct 14, 2023
12d16ee
Fixing issue on zero_init_texture test
gents83 Oct 15, 2023
b0984ef
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Oct 21, 2023
7f727b0
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Oct 23, 2023
c6e1e28
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Oct 25, 2023
b140f6a
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Oct 30, 2023
93cffd2
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Oct 30, 2023
535011b
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Nov 3, 2023
aa1a05f
Fixing double lock on buffer destroy + test added
gents83 Nov 5, 2023
1198114
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Nov 5, 2023
ae0b777
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Nov 10, 2023
673af75
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Nov 10, 2023
2710cdd
Merge branch 'trunk' into master
gents83 Nov 10, 2023
8bc7140
Merge branch 'master' of https://github.com/gents83/wgpu into wgpu/ma…
gents83 Nov 10, 2023
2cfa766
Fixing wrong merge
gents83 Nov 10, 2023
090c9c3
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Nov 13, 2023
715bd00
Fixing changelog integration
gents83 Nov 13, 2023
b6d61da
Fix insert_impl and take_and_mark_destroyed
gents83 Nov 13, 2023
c8a60e2
Fix fmt
gents83 Nov 13, 2023
ff042c4
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu
Nov 16, 2023
24393a4
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
gents83 Nov 18, 2023
0e437be
Updated changelog
gents83 Nov 18, 2023
724fc1a
Shorten lock durations to avoid deadlocks
SludgePhD Nov 18, 2023
e4cec38
Merge pull request #17 from SludgePhD/arcanization
gents83 Nov 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions deno_webgpu/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ fn check_unstable(state: &OpState, api_name: &str) {
}
}

pub type Instance = std::sync::Arc<wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>>;
pub type Instance =
std::sync::Arc<wgpu_core::global::Global<wgpu_core::identity::IdentityManagerFactory>>;

struct WebGpuAdapter(Instance, wgpu_core::id::AdapterId);
impl Resource for WebGpuAdapter {
Expand Down Expand Up @@ -318,9 +319,9 @@ pub async fn op_webgpu_request_adapter(
let instance = if let Some(instance) = state.try_borrow::<Instance>() {
instance
} else {
state.put(std::sync::Arc::new(wgpu_core::hub::Global::new(
state.put(std::sync::Arc::new(wgpu_core::global::Global::new(
"webgpu",
wgpu_core::hub::IdentityManagerFactory,
wgpu_core::identity::IdentityManagerFactory,
wgpu_types::InstanceDescriptor {
backends,
dx12_shader_compiler: wgpu_types::Dx12Compiler::Fxc,
Expand Down
2 changes: 1 addition & 1 deletion deno_webgpu/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn op_webgpu_create_texture(
let (val, maybe_err) = gfx_select!(device => instance.device_create_texture(
device,
&descriptor,
()
(), Some(())
));

let rid = state.resource_table.add(WebGpuTexture {
Expand Down
4 changes: 2 additions & 2 deletions player/src/bin/play.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ fn main() {
.build(&event_loop)
.unwrap();

let global = wgc::hub::Global::new(
let global = wgc::global::Global::new(
"player",
IdentityPassThroughFactory,
wgt::InstanceDescriptor::default(),
);
let mut command_buffer_id_manager = wgc::hub::IdentityManager::default();
let mut command_buffer_id_manager = wgc::identity::IdentityManager::default();

#[cfg(feature = "winit")]
let surface = global.instance_create_surface(
Expand Down
26 changes: 14 additions & 12 deletions player/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ use std::{borrow::Cow, fmt::Debug, fs, marker::PhantomData, path::Path};
#[derive(Debug)]
pub struct IdentityPassThrough<I>(PhantomData<I>);

impl<I: Clone + Debug + wgc::id::TypedId> wgc::hub::IdentityHandler<I> for IdentityPassThrough<I> {
impl<I: Clone + Debug + wgc::id::TypedId> wgc::identity::IdentityHandler<I>
for IdentityPassThrough<I>
{
type Input = I;
fn process(&self, id: I, backend: wgt::Backend) -> I {
let (index, epoch, _backend) = id.unzip();
Expand All @@ -26,33 +28,33 @@ impl<I: Clone + Debug + wgc::id::TypedId> wgc::hub::IdentityHandler<I> for Ident

pub struct IdentityPassThroughFactory;

impl<I: Clone + Debug + wgc::id::TypedId> wgc::hub::IdentityHandlerFactory<I>
impl<I: Clone + Debug + wgc::id::TypedId> wgc::identity::IdentityHandlerFactory<I>
for IdentityPassThroughFactory
{
type Filter = IdentityPassThrough<I>;
fn spawn(&self) -> Self::Filter {
IdentityPassThrough(PhantomData)
}
}
impl wgc::hub::GlobalIdentityHandlerFactory for IdentityPassThroughFactory {}
impl wgc::identity::GlobalIdentityHandlerFactory for IdentityPassThroughFactory {}

pub trait GlobalPlay {
fn encode_commands<A: wgc::hub::HalApi>(
fn encode_commands<A: wgc::hal_api::HalApi>(
&self,
encoder: wgc::id::CommandEncoderId,
commands: Vec<trace::Command>,
) -> wgc::id::CommandBufferId;
fn process<A: wgc::hub::HalApi>(
fn process<A: wgc::hal_api::HalApi>(
&self,
device: wgc::id::DeviceId,
action: trace::Action,
dir: &Path,
comb_manager: &mut wgc::hub::IdentityManager,
comb_manager: &mut wgc::identity::IdentityManager,
);
}

impl GlobalPlay for wgc::hub::Global<IdentityPassThroughFactory> {
fn encode_commands<A: wgc::hub::HalApi>(
impl GlobalPlay for wgc::global::Global<IdentityPassThroughFactory> {
fn encode_commands<A: wgc::hal_api::HalApi>(
&self,
encoder: wgc::id::CommandEncoderId,
commands: Vec<trace::Command>,
Expand Down Expand Up @@ -146,12 +148,12 @@ impl GlobalPlay for wgc::hub::Global<IdentityPassThroughFactory> {
cmd_buf
}

fn process<A: wgc::hub::HalApi>(
fn process<A: wgc::hal_api::HalApi>(
&self,
device: wgc::id::DeviceId,
action: trace::Action,
dir: &Path,
comb_manager: &mut wgc::hub::IdentityManager,
comb_manager: &mut wgc::identity::IdentityManager,
) {
use wgc::device::trace::Action;
log::info!("action {:?}", action);
Expand All @@ -178,9 +180,9 @@ impl GlobalPlay for wgc::hub::Global<IdentityPassThroughFactory> {
Action::DestroyBuffer(id) => {
self.buffer_drop::<A>(id, true);
}
Action::CreateTexture(id, desc) => {
Action::CreateTexture(id, tv_id, desc) => {
self.device_maintain_ids::<A>(device).unwrap();
let (_, error) = self.device_create_texture::<A>(device, &desc, id);
let (_, error) = self.device_create_texture::<A>(device, &desc, id, tv_id);
if let Some(e) = error {
panic!("{:?}", e);
}
Expand Down
6 changes: 3 additions & 3 deletions player/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Test<'_> {
fn run(
self,
dir: &Path,
global: &wgc::hub::Global<IdentityPassThroughFactory>,
global: &wgc::global::Global<IdentityPassThroughFactory>,
adapter: wgc::id::AdapterId,
test_num: u32,
) {
Expand All @@ -98,7 +98,7 @@ impl Test<'_> {
panic!("{:?}", e);
}

let mut command_buffer_id_manager = wgc::hub::IdentityManager::default();
let mut command_buffer_id_manager = wgc::identity::IdentityManager::default();
println!("\t\t\tRunning...");
for action in self.actions {
wgc::gfx_select!(device => global.process(device, action, dir, &mut command_buffer_id_manager));
Expand Down Expand Up @@ -178,7 +178,7 @@ impl Corpus {
let dir = path.parent().unwrap();
let corpus: Corpus = ron::de::from_reader(File::open(&path).unwrap()).unwrap();

let global = wgc::hub::Global::new(
let global = wgc::global::Global::new(
"test",
IdentityPassThroughFactory,
wgt::InstanceDescriptor {
Expand Down
1 change: 0 additions & 1 deletion wgpu-core/LICENSE.APACHE
gents83 marked this conversation as resolved.
Show resolved Hide resolved

This file was deleted.

176 changes: 176 additions & 0 deletions wgpu-core/LICENSE.APACHE
gents83 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS
1 change: 0 additions & 1 deletion wgpu-core/LICENSE.MIT

This file was deleted.

21 changes: 21 additions & 0 deletions wgpu-core/LICENSE.MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 The gfx-rs developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading