Skip to content

Commit

Permalink
Fix type costruction of RHS in storage_rw compoundAssignmentBuilder (#…
Browse files Browse the repository at this point in the history
…3843)

Fixed: #3842
  • Loading branch information
dneto0 authored Jul 5, 2024
1 parent e80efbc commit f752c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgpu/shader/execution/expression/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f752c75

Please sign in to comment.