From b007fefd38a6009e8f77636e03b8ebffda56e27a Mon Sep 17 00:00:00 2001 From: Stefnotch Date: Wed, 24 Apr 2024 10:44:06 +0200 Subject: [PATCH] Fix dispatch indirect call --- .../core/src/Engines/WebGPU/Extensions/engine.computeShader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev/core/src/Engines/WebGPU/Extensions/engine.computeShader.ts b/packages/dev/core/src/Engines/WebGPU/Extensions/engine.computeShader.ts index 3bf19866552..522c5d9cd88 100644 --- a/packages/dev/core/src/Engines/WebGPU/Extensions/engine.computeShader.ts +++ b/packages/dev/core/src/Engines/WebGPU/Extensions/engine.computeShader.ts @@ -141,7 +141,7 @@ WebGPUEngine.prototype._computeDispatch = function ( } if (buffer !== undefined) { - computePass.dispatchWorkgroupsIndirect(buffer.underlyingResource(), offset); + computePass.dispatchWorkgroupsIndirect(buffer.underlyingResource, offset); } else { if (x + y + z > 0) { computePass.dispatchWorkgroups(x, y, z);