CmpOp
On this page

CmpOp

Type in IR

The operator tag on Expr.compare: the six relational operators.

import type { CmpOp } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

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.ts, line 35, at commit 26de7be8

Edit this page Report a problem