glslEs300Backend
이 페이지에서

glslEs300Backend

상수, 출력 분류

The GLSL ES 3.00 (WebGL2) Backend.

import { glslEs300Backend } from 'typeshade'

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

구문

const glslEs300Backend: Backend

설명

The GLSL ES 3.00 (WebGL2) Backend. It supplies the GLSL spelling of types, literals, intrinsics and declarations to the shared emitter, which walks a module’s control flow the same way for every target. emitGlslModule, emitGlslStages and emitGlslFragment drive it; pass it to a function that takes a Backend when you need GLSL spelling for a single construct.

Everything GLSL ES 3.00 cannot express throws UnsupportedFeatureError (SD0030) before any source is produced: a @compute entry that is not declared portable, a multisampled (2d-ms) texture load, f16, subgroups, a standalone sampler binding (GLSL has only the combined sampler2D), and a vertex entry that returns a bare non-struct output (GLSL links inter-stage varyings by field name, so the output must be a struct whose field the fragment input shares). A storage binding does not throw: emitGlslModule rewrites it to a data-texture read first, and only the shapes that rewrite cannot cover throw, such as a read_write storage binding or an unsupported element type.

함께 보기

소스

src/core/backends/glsl.ts, 557행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고