LogOp
이 페이지에서

LogOp

타입, IR 분류

The operator tag on Expr.logical: the short-circuiting boolean operators && and ||.

import type { LogOp } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

type LogOp = '&&' | '||';

설명

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.

소스

src/core/ir/nodes.ts, 43행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고