emitExpr
이 페이지에서

emitExpr()

함수, 출력 분류

Emit one Expr as WGSL source text, using wgslBackend with the default 'full' parenthesisation.

import { emitExpr } from 'typeshade'

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

구문

const emitExpr: (e: Expr) => string

매개변수

e Expr

반환값

string

설명

The expression is written as given; the lowering and optimization passes that emitModule runs do not run here.

대상별 지원

대상지원비고
WGSL (WebGPU) 지원

Writes WGSL for WebGPU.

GLSL ES 3.00 (WebGL2) 해당 없음
CPU 오라클 해당 없음

함께 보기

소스

src/core/backends/wgsl.ts, 487행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고