From 462ce14a78b4109143918878042b9f552083c82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 26 Jan 2024 23:46:46 +0100 Subject: refactor: migrate extensions to virtual ops module (#22135) First pass of migrating away from `Deno.core.ensureFastOps()`. A few "tricky" ones have been left for a follow up. --- ext/webgpu/01_webgpu.js | 4 ++-- ext/webgpu/02_surface.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/webgpu') diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index 5bc185727..db0dc9264 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -11,7 +11,7 @@ const { isDataView, isTypedArray, } = core; -const { +import { op_webgpu_buffer_get_map_async, op_webgpu_buffer_get_mapped_range, op_webgpu_buffer_unmap, @@ -87,7 +87,7 @@ const { op_webgpu_request_device, op_webgpu_write_buffer, op_webgpu_write_texture, -} = core.ensureFastOps(); +} from "ext:core/ops"; const { ArrayBuffer, ArrayBufferPrototypeGetByteLength, diff --git a/ext/webgpu/02_surface.js b/ext/webgpu/02_surface.js index eb3ee80af..94b0a5d54 100644 --- a/ext/webgpu/02_surface.js +++ b/ext/webgpu/02_surface.js @@ -6,13 +6,13 @@ /// /// -import { core, primordials } from "ext:core/mod.js"; -const { - op_webgpu_surface_create, +import { primordials } from "ext:core/mod.js"; +import { op_webgpu_surface_configure, + op_webgpu_surface_create, op_webgpu_surface_get_current_texture, op_webgpu_surface_present, -} = core.ensureFastOps(); +} from "ext:core/ops"; const { ObjectPrototypeIsPrototypeOf, Symbol, -- cgit v1.2.3