---
title: "vec2f: type in Runtime, TypeShade API reference"
description: "vec2f, a type in Runtime. WGSL's vec2f, the same type as vec2. The program runtime that runs compiled programs on WebGPU…"
url: https://typeshade.dev/api/vec2f/
language: en
---

# `vec2f`

Type in Runtime

WGSL's `vec2f`, the same type as `vec2`.

`import type { vec2f } from 'typeshade/runtime'`

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

## Syntax

```ts
type vec2f = vec2;
```

## See also

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

## Source

[`src/runtime/host-types.ts`, line 66](https://github.com/typeshade/typeshade/blob/af54ddad5/src/runtime/host-types.ts#L66), at commit af54ddad5
