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

# `vec4f`

Type in Runtime

WGSL's `vec4f`, the same type as `vec4`.

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

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

## Syntax

```ts
type vec4f = vec4;
```

## See also

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

## Source

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