ReflectOptions
인터페이스, 리플렉션 분류
Options for reflect.
import type { ReflectOptions } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface ReflectOptions { readonly fp64Flavor?: Fp64Flavor; readonly console?: 'cpu' | 'gpu';}인스턴스 속성
fp64Flavor선택 사항읽기 전용Fp64FlavorThe f64 emulation flavour the emit will use, the same
Fp64Flavorthe backend is given. It decides whether the module binds the_fp64guard, 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
consolecall is recorded:'gpu'reports the_consolebuffer the WGSL then binds (Rule 6.11, surface §66), as_fp64is reported. Pass the same valuecompile()got. Defaults to'cpu', which adds no binding.
함께 보기
소스
src/core/reflect.ts, 728행, 커밋 c66579bf 기준