accuracyOf()
Function in Tooling
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'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
function accuracyOf(op: string): DeterminismAccuracy | undefinedParameters
opstring
Return value
DeterminismAccuracy | undefined
Description
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.
See also
Source
src/core/passes/determinism.ts, line 356, at commit 26de7be8