---
title: "vec2f in WGSL, GLSL and TypeShade: shader type reference"
description: "vec2f is vec2<f32> in WGSL and vec2 in GLSL ES 3.00. A two-component vector of f32, same type as vec2."
url: https://typeshade.dev/reference/types/vec2f/
language: en
---

# `vec2f`

Type

A two-component vector of `f32`, same type as `vec2`.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
type vec2f = vec2
```

## See also

- [Types](https://typeshade.dev/reference/types/)
