ReflectOptions
이 페이지에서

ReflectOptions

인터페이스, 리플렉션 분류

Options for reflect.

import type { ReflectOptions } from 'typeshade'

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

구문

interface ReflectOptions {
readonly fp64Flavor?: Fp64Flavor;
readonly console?: 'cpu' | 'gpu';
}

인스턴스 속성

fp64Flavor선택 사항읽기 전용 Fp64Flavor

The f64 emulation flavour the emit will use, the same Fp64Flavor the backend is given. It decides whether the module binds the _fp64 guard, a 1x1 texture the emulated-double helpers read so that a fast-math compiler cannot reassociate their arithmetic: the 'float' helpers (the default) read it and the 'integer' helpers do not. Pass the same value the emit will get; a host that builds a bind group from a reflection computed with a different flavour is describing a different program than the one it runs.

console선택 사항읽기 전용 'cpu' | 'gpu'

Where a console call is recorded: 'gpu' reports the _console buffer the WGSL then binds (Rule 6.11, surface §66), as _fp64 is reported. Pass the same value compile() got. Defaults to 'cpu', which adds no binding.

함께 보기

소스

src/core/reflect.ts, 728행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고