diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-03-20 00:43:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 00:43:54 +0100 |
commit | 0f9c929b3a7135667e7f1f8de3ae1195b59fb2e3 (patch) | |
tree | fa0b1913269ae1e2893ab7a7729c501df8b040bd /runtime/ops/webgpu.rs | |
parent | 941a7c8ec9dd1da28923b45da6009576e65c172b (diff) |
fix(op_crates/webgpu): create instance only when required (#9771)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Diffstat (limited to 'runtime/ops/webgpu.rs')
-rw-r--r-- | runtime/ops/webgpu.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/runtime/ops/webgpu.rs b/runtime/ops/webgpu.rs index d3b9cfa19..bee08b9f6 100644 --- a/runtime/ops/webgpu.rs +++ b/runtime/ops/webgpu.rs @@ -4,11 +4,6 @@ pub fn init(rt: &mut deno_core::JsRuntime) { { let op_state = rt.op_state(); let mut state = op_state.borrow_mut(); - state.put(wgpu_core::hub::Global::new( - "webgpu", - wgpu_core::hub::IdentityManagerFactory, - wgpu_types::BackendBit::PRIMARY, - )); let unstable_checker = state.borrow::<super::UnstableChecker>(); let unstable = unstable_checker.unstable; state.put(Unstable(unstable)); |