도구
export 20개
레지스트리 생성과 의미 비교, 출력 동일성 확인, 크기 측정에 쓰는 도구를 모았습니다.
시그니처, 설명, 예제는 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
-
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.
-
buildRegistry함수 - Validate a discovered module set against a curated order and render a registry module from it: a union type of the ids, a record from id to module, and the imports feeding it.
-
BuildRegistryOptions인터페이스 - Options for buildRegistry.
-
BuiltRegistry인터페이스 - What buildRegistry produced.
-
ClassifiedSemanticDiff인터페이스 - A SemanticDiff whose differences were classified against a declared transform pipeline (SemanticDiffOptions.transforms).
-
DeterminismAccuracy타입 - What accuracyOf says about one operation: exact when WGSL gives it one answer and both targets agree, otherwise the kind of room left and its bound in words, with a note where the GLSL ES 3.00 spelling matters.
-
DeterminismEntry인터페이스 - One row of determinismReport: an operation the module uses whose result may differ by driver, with the spec's bound, how many times it occurs and where, in declaration order.
-
DeterminismKind타입 - Why an operation's result may differ by driver, in WGSL §15.7.4's own categories plus four of TypeShade's.
-
determinismReport함수 - The operations in m whose result may differ by driver, one entry per operation and float kind, in order of first appearance over the module constants, the module variables and the functions: a builtin with a ULP or absolute bound, one inherited from a formula the driver may reassociate or fuse, a derivative or determinant, a filtered texture read or gather, an operation the GLSL ES 3.00 spelling may answer differently, every emulated f64 arithmetic operator and bounded builtin, and each floating-point reduction of a kernel function's loop, which runs in the tree order.
-
emitIdentity함수 - A stable, human-readable identity for one emit configuration.
-
EmitIdentityInput인터페이스 - The emit options that change the emitted text, other than plugins.
-
EmitTarget타입 - The emit target an identity is computed for.
-
ExplainedDiffEntry인터페이스 - One diff line that a declared transform explains: applying transform to the reference side made line disappear from bucket.
-
isSemanticallyEqual함수 - True when every bucket of d is empty.
-
RegistryEntry인터페이스 - One discovered module, as the caller's scan found it.
-
SemanticAspect타입 - An axis of difference semanticDiff can be told to disregard.
-
semanticDiff함수 - Compare two modules at the IR and reflection layer.
-
SemanticDiff인터페이스 - The four buckets of difference.
-
SemanticDiffBucket타입 - One of the four fact buckets of a SemanticDiff.
-
SemanticDiffOptions인터페이스 - Options for semanticDiff.