0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix(webgpu): use correct op for GPUDevice.createSampler (#17729)

Fixes #17728
This commit is contained in:
Leo Kettmeir 2023-02-11 06:40:51 +01:00 committed by GitHub
parent fc90c5fb5c
commit 211f49619a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});