diff options
author | Hajime-san <41257923+Hajime-san@users.noreply.github.com> | 2024-08-02 03:19:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 11:19:25 -0700 |
commit | ba932782817b1961aac89f741bf05a2c32c1bf15 (patch) | |
tree | d50b9a8c16688e2f539f3013d1ae423a88b7567f /ext/webgpu | |
parent | 6db5f1bb6e3913381ffed206dce4a5cde14fa772 (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 'ext/webgpu')
-rw-r--r-- | ext/webgpu/01_webgpu.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index e12e8699d..15b82a8e3 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -1490,6 +1490,7 @@ class GPUDevice extends EventTarget { fragment = { module, entryPoint: descriptor.fragment.entryPoint, + constants: descriptor.fragment.constants, targets: descriptor.fragment.targets, }; } @@ -1501,6 +1502,7 @@ class GPUDevice extends EventTarget { vertex: { module, entryPoint: descriptor.vertex.entryPoint, + constants: descriptor.vertex.constants, buffers: descriptor.vertex.buffers, }, primitive: descriptor.primitive, @@ -1638,6 +1640,7 @@ class GPUDevice extends EventTarget { fragment = { module, entryPoint: descriptor.fragment.entryPoint, + constants: descriptor.fragment.constants, targets: descriptor.fragment.targets, }; } @@ -1649,6 +1652,7 @@ class GPUDevice extends EventTarget { vertex: { module, entryPoint: descriptor.vertex.entryPoint, + constants: descriptor.vertex.constants, buffers: descriptor.vertex.buffers, }, primitive: descriptor.primitive, |