CmpOp
Type in IR
The operator tag on Expr.compare: the six relational operators.
import type { CmpOp } from 'typeshade'import type { CmpOp } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
type CmpOp = '<' | '>' | '<=' | '>=' | '==' | '!=';Description
A comparison
produces a bool, or a vecN<bool> when the operands are vectors. The WGSL, GLSL
and CPU backends spell or evaluate it identically.
Source
src/core/ir/nodes/operators.ts, line 21, at commit af54ddad5