---
title: "isVec64(): function in Types, TypeShade API reference"
description: "isVec64, a function in Types. Narrows a ShaderType to the emulated-double vector arm (vec2f64T and its 3- and 4-wide siblings)."
url: https://typeshade.dev/api/isvec64/
language: en
---

# `isVec64()`

Function in Types

Narrows a ShaderType to the emulated-double vector arm (vec2f64T and its 3- and 4-wide siblings).

`import { isVec64 } from 'typeshade'`
`import { isVec64 } from 'typeshade/core/ir'`

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

## Syntax

```ts
const isVec64: (
  t: ShaderType,
) => t is Extract<ShaderType, { kind: "vec64"; }>
```

## Parameters

**`t` `ShaderType`**

## Return value

`t is Extract<ShaderType, { kind: 'vec64' }>`

## Description

Narrows a `ShaderType` to the emulated-double vector arm ([`vec2f64T`](https://typeshade.dev/api/vec2f64t/) and its 3- and 4-wide siblings). It is distinct from [`isVec`](https://typeshade.dev/api/isvec/), which matches only the native `vec` kind and is `false` for an emulated-double vector. Component access (`.comp()` and swizzles) accepts either `isVec(t) || isVec64(t)`, since both kinds support it, each through its own emitted form.

## Examples

### Example

```ts
import { isVec64 } from 'typeshade'
import { vec2f64T, vec2fT } from 'typeshade/core/ir'

isVec64(vec2f64T) // true
isVec64(vec2fT) // false: a native vec, use isVec for that
```

## See also

- [`vec2f64T`](https://typeshade.dev/api/vec2f64t/)
- [`isVec`](https://typeshade.dev/api/isvec/)

## Source

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