Skip to content

Commit 8da4401

Browse files
committed
Tweaks
1 parent 55ced38 commit 8da4401

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/typegpu/src/tgsl/wgslGenerator.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,11 @@ ${this.ctx.pre}}`;
312312
if (
313313
op === '===' && isKnownAtComptime(lhsExpr) && isKnownAtComptime(rhsExpr)
314314
) {
315-
return snip(
316-
lhsExpr.value === rhsExpr.value,
317-
bool,
318-
/* ref */ 'constant',
319-
);
315+
return snip(lhsExpr.value === rhsExpr.value, bool, 'constant');
320316
}
321317

322318
if (lhsExpr.dataType.type === 'unknown') {
323-
throw new WgslTypeError(
324-
`Left-hand side of '${op}' is of unknown type`,
325-
);
319+
throw new WgslTypeError(`Left-hand side of '${op}' is of unknown type`);
326320
}
327321

328322
if (rhsExpr.dataType.type === 'unknown') {

0 commit comments

Comments
 (0)