---
title: "vec4fT: constant in Types, TypeShade API reference"
description: "vec4fT, a constant in Types. A native vec4<f32>: an RGBA colour or a homogeneous clip-space position."
url: https://typeshade.dev/api/vec4ft/
language: en
---

# `vec4fT`

Constant in Types

A native `vec4<f32>`: an RGBA colour or a homogeneous clip-space position.

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

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

## Syntax

```ts
const vec4fT: { readonly kind: "vec"; readonly n: 4; readonly elem: "f32"; }
```

## Description

Types the `pos: builtin('position', vec4fT)` vertex-output field, a `location(0, vec4fT)` fragment-output field, and any RGBA uniform field.

## Source

[`src/core/ir/types/vector-types.ts`, line 23](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/vector-types.ts#L23), at commit af54ddad5
