LogOp
Type in IR
The operator tag on Expr.logical: the short-circuiting boolean operators && and ||.
import type { LogOp } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
type LogOp = '&&' | '||';Description
The operator tag on Expr.logical: the short-circuiting boolean operators && and
||. Both operands and the result are bool. It is a separate Expr.op from
binop because WGSL and GLSL give && and || short-circuit evaluation, which a
plain binary operator does not have.
Source
src/core/ir/nodes.ts, line 43, at commit 26de7be8