From 9f86705fa64db7c1569f9244673e97376ae75782 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 5 Jan 2024 19:55:01 +0530 Subject: chore(ext/webgpu): include GPUCanvasContext in snapshot (#21773) Part 1 of #21713 Changes: - Remove `.present()` and add a `presentGPUCanvasContext` (not exposed yet to users) - Move lazy load logic to `00_init.js`. This can be used to use webgpu on-demand from future code (OffScreenCanvas) --- ext/webgpu/surface.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'ext/webgpu/surface.rs') diff --git a/ext/webgpu/surface.rs b/ext/webgpu/surface.rs index 4f243fbb1..1371c1fa4 100644 --- a/ext/webgpu/surface.rs +++ b/ext/webgpu/surface.rs @@ -11,17 +11,6 @@ use std::borrow::Cow; use std::rc::Rc; use wgpu_types::SurfaceStatus; -deno_core::extension!( - deno_webgpu_surface, - deps = [deno_webidl, deno_web, deno_webgpu], - ops = [ - op_webgpu_surface_configure, - op_webgpu_surface_get_current_texture, - op_webgpu_surface_present, - ], - esm = ["02_surface.js"], -); - pub struct WebGpuSurface(pub crate::Instance, pub wgpu_core::id::SurfaceId); impl Resource for WebGpuSurface { fn name(&self) -> Cow { -- cgit v1.2.3