EmitIdentityInput
이 페이지에서

EmitIdentityInput

인터페이스, 도구 분류

The emit options that change the emitted text, other than plugins.

import type { EmitIdentityInput } from 'typeshade'

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

구문

interface EmitIdentityInput extends EmitOptions {
readonly emulateCompute?: boolean;
readonly overrideValues?: Readonly<Record<string, number | boolean>>;
}

설명

The list is explicit: every option here is one axis of the identity that emitIdentity computes, and an option that changes the emitted text belongs here so that the stamp describes it.

인스턴스 속성

emulateCompute선택 사항읽기 전용 boolean

GLSL only. emitGlslModule({ emulateCompute }) rewrites a compute entry into a fragment shader, so it is an emit mode.

In the identity, the marker records that this compute-to-fragment rewrite ran, whether because this option was passed or because the module declares a portable compute entry, which takes the same path with no option. Pass the module as emitIdentity’s third argument and the marker is derived from either source.

overrideValues선택 사항읽기 전용 Readonly<Record<string, number | boolean>>

GLSL only. Pinned override values become #defines, which changes the emitted text.

함께 보기

소스

src/core/emit-identity.ts, 41행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고