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 25cb8b5 commit dc7d71fCopy full SHA for dc7d71f
packages/typegpu/src/tgsl/wgslGenerator.ts
@@ -158,10 +158,10 @@ export function generateExpression(
158
159
if (
160
op === '/' &&
161
- convLhs.dataType.type !== 'f32' &&
162
- convLhs.dataType.type !== 'f16' ||
163
- convRhs.dataType.type !== 'f32' &&
164
- convRhs.dataType.type !== 'f16'
+ (convLhs.dataType.type !== 'f32' &&
+ convLhs.dataType.type !== 'f16') ||
+ (convRhs.dataType.type !== 'f32' &&
+ convRhs.dataType.type !== 'f16')
165
) {
166
console.warn(
167
'In division we cast both sides to the f32. This may not be the expected behaviour. Consider using explicit conversions instead.',
0 commit comments