Fp64GuardHandle
Interface in Emulated f64
The value fp64Guard returns: a binding declaration for the _fp64 guard texture, pinned to the caller's chosen.
import type { Fp64GuardHandle } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface Fp64GuardHandle { readonly type: ShaderType; readonly binding: BindingDecl;}Description
Pass it inside a
module’s uses: [...] only when the host’s bind-group layout is fixed and needs
the guard at a specific slot. Leaving it out is the common case: fp64Lower
adds the binding at group 0, in the first free slot, to any module whose lowered code
calls a guarded df64 helper. A module that pins a slot here but also declares a
conflicting _fp64 binding elsewhere (a different type or space) fails emit with SD0042.
Instance properties
typeread onlyShaderTypeThe binding’s shader type: a 2D
f32texture.bindingread onlyBindingDeclThe binding declaration, ready for a module’s
uses: [...].
See also
Source
src/core/fp64/df64-lib.ts, line 147, at commit 26de7be8