summaryrefslogtreecommitdiff
path: root/tests/unit/webgpu_test.ts
diff options
context:
space:
mode:
authorHajime-san <41257923+Hajime-san@users.noreply.github.com>2024-08-02 03:19:25 +0900
committerGitHub <noreply@github.com>2024-08-01 11:19:25 -0700
commitba932782817b1961aac89f741bf05a2c32c1bf15 (patch)
treed50b9a8c16688e2f539f3013d1ae423a88b7567f /tests/unit/webgpu_test.ts
parent6db5f1bb6e3913381ffed206dce4a5cde14fa772 (diff)
fix(ext/webgpu): assign missing `constants` property of shader about `GPUDevice.createRenderPipeline[Async]` (#24803)
fixes https://github.com/denoland/deno/issues/24287
Diffstat (limited to 'tests/unit/webgpu_test.ts')
-rw-r--r--tests/unit/webgpu_test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/webgpu_test.ts b/tests/unit/webgpu_test.ts
index 9947ea32b..43b24e41a 100644
--- a/tests/unit/webgpu_test.ts
+++ b/tests/unit/webgpu_test.ts
@@ -129,10 +129,18 @@ Deno.test({
vertex: {
module: shaderModule,
entryPoint: "vs_main",
+ // only test purpose
+ constants: {
+ value: 0.5,
+ },
},
fragment: {
module: shaderModule,
entryPoint: "fs_main",
+ // only test purpose
+ constants: {
+ value: 0.5,
+ },
targets: [
{
format: "rgba8unorm-srgb",