---
title: "isMat64(): function in Types, TypeShade API reference"
description: "isMat64, a function in Types. Narrows a ShaderType to an emulated-double matrix (matNxN<f64>, see mat2f64T)…"
url: https://typeshade.dev/api/ismat64/
language: en
---

# `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'`
`import { isMat64 } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const isMat64: (
  t: ShaderType,
) => t is Extract<ShaderType, { kind: "mat"; }> & { elem: "f64"; }
```

## Parameters

**`t` `ShaderType`**

## Return value

`t is Extract<ShaderType, { kind: 'mat' }> & { elem: 'f64' }`

## See also

- [`mat2f64T`](https://typeshade.dev/api/mat2f64t/)

## Source

[`src/core/ir/types/predicates.ts`, line 63](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/predicates.ts#L63), at commit af54ddad5
