From 211f49619afd915a2ce56cf0b5da50f640c90f73 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sat, 11 Feb 2023 06:40:51 +0100 Subject: fix(webgpu): use correct op for GPUDevice.createSampler (#17729) Fixes #17728 --- ext/webgpu/src/01_webgpu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/webgpu/src/01_webgpu.js') diff --git a/ext/webgpu/src/01_webgpu.js b/ext/webgpu/src/01_webgpu.js index 10243db2f..3e8e3161e 100644 --- a/ext/webgpu/src/01_webgpu.js +++ b/ext/webgpu/src/01_webgpu.js @@ -992,7 +992,7 @@ class GPUDevice extends EventTarget { context: "Argument 1", }); const device = assertDevice(this, { prefix, context: "this" }); - const { rid, err } = ops.op_webgpu_create_texture({ + const { rid, err } = ops.op_webgpu_create_sampler({ deviceRid: device.rid, ...descriptor, }); -- cgit v1.2.3