accuracyOf()
함수, 도구 분류
What WGSL §15.7.4 allows the result of one operation to be, for a builtin id, a binary operator or a matrix product as the IR names it, computing in f32: { kind: 'exact' } when there is one answer and both targets give it, otherwise the kind and bound determinismReport would list it with.
import { accuracyOf } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
function accuracyOf(op: string): DeterminismAccuracy | undefined매개변수
opstring
반환값
DeterminismAccuracy | undefined
설명
undefined for a
name the table does not know, which the test suite turns into a failure for every id the
compiler can emit, so the answer is never undefined for a real one.
함께 보기
소스
src/core/passes/determinism.ts, 361행, 커밋 c66579bf 기준