summaryrefslogtreecommitdiff
path: root/ext/webgpu/src
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-11 06:40:51 +0100
committerGitHub <noreply@github.com>2023-02-11 05:40:51 +0000
commit211f49619afd915a2ce56cf0b5da50f640c90f73 (patch)
treea05dc52cd70eff08341a89cf9af501b345dfc0cd /ext/webgpu/src
parentfc90c5fb5cdf1c6f6b360ddfe15ee9cd45b63995 (diff)
fix(webgpu): use correct op for GPUDevice.createSampler (#17729)
Fixes #17728
Diffstat (limited to 'ext/webgpu/src')
-rw-r--r--ext/webgpu/src/01_webgpu.js2
1 files changed, 1 insertions, 1 deletions
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,
});