From f752c7515376487493ff22a5e1aed4d6212a6983 Mon Sep 17 00:00:00 2001 From: David Neto Date: Fri, 5 Jul 2024 16:55:20 -0400 Subject: [PATCH] Fix type costruction of RHS in storage_rw compoundAssignmentBuilder (#3843) Fixed: #3842 --- src/webgpu/shader/execution/expression/expression.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgpu/shader/execution/expression/expression.ts b/src/webgpu/shader/execution/expression/expression.ts index 1c2a3173f05b..1b9815117f89 100644 --- a/src/webgpu/shader/execution/expression/expression.ts +++ b/src/webgpu/shader/execution/expression/expression.ts @@ -870,7 +870,7 @@ ${body} if (inputSource === 'storage_rw') { operation = ` outputs[i].value = ${storageType(resultType)}(inputs[i].lhs); - outputs[i].value ${op} ${storageType(resultType)}(inputs[i].rhs);`; + outputs[i].value ${op} ${rhsType}(inputs[i].rhs);`; } else { operation = ` var ret = ${lhsType}(inputs[i].lhs);