We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840e832 commit 1a73fa7Copy full SHA for 1a73fa7
packages/typegpu/src/tgsl/wgslGenerator.ts
@@ -312,17 +312,11 @@ ${this.ctx.pre}}`;
312
if (
313
op === '===' && isKnownAtComptime(lhsExpr) && isKnownAtComptime(rhsExpr)
314
) {
315
- return snip(
316
- lhsExpr.value === rhsExpr.value,
317
- bool,
318
- /* ref */ 'constant',
319
- );
+ return snip(lhsExpr.value === rhsExpr.value, bool, 'constant');
320
}
321
322
if (lhsExpr.dataType.type === 'unknown') {
323
- throw new WgslTypeError(
324
- `Left-hand side of '${op}' is of unknown type`,
325
+ throw new WgslTypeError(`Left-hand side of '${op}' is of unknown type`);
326
327
328
if (rhsExpr.dataType.type === 'unknown') {
0 commit comments