summaryrefslogtreecommitdiff
path: root/ext/webgpu/02_surface.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webgpu/02_surface.js')
-rw-r--r--ext/webgpu/02_surface.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/webgpu/02_surface.js b/ext/webgpu/02_surface.js
index 1c9751f62..eb3ee80af 100644
--- a/ext/webgpu/02_surface.js
+++ b/ext/webgpu/02_surface.js
@@ -8,6 +8,7 @@
import { core, primordials } from "ext:core/mod.js";
const {
+ op_webgpu_surface_create,
op_webgpu_surface_configure,
op_webgpu_surface_get_current_texture,
op_webgpu_surface_present,
@@ -175,7 +176,7 @@ class UnsafeWindowSurface {
#surfaceRid;
constructor(system, win, display) {
- this.#surfaceRid = ops.op_webgpu_surface_create(system, win, display);
+ this.#surfaceRid = op_webgpu_surface_create(system, win, display);
}
getContext(context) {