isMat64()
Function in Types
Narrows a ShaderType to an emulated-double matrix (matNxN<f64>, see mat2f64T), which is emitted as a struct of double-double columns.
import { isMat64 } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const isMat64: ( t: ShaderType,) => t is Extract<ShaderType, { kind: "mat"; }> & { elem: "f64"; }Parameters
Return value
t is Extract<ShaderType, { kind: 'mat' }> & { elem: 'f64' }
See also
Source
src/core/ir/types.ts, line 1112, at commit 26de7be8