---
title: "mat4x4fT: constant in Types, TypeShade API reference"
description: "mat4x4fT, a constant in Types. A native mat4x4<f32>, the model-view-projection or view matrix type of a typical per-frame uniform."
url: https://typeshade.dev/api/mat4x4ft/
language: en
---

# `mat4x4fT`

Constant in Types

A native `mat4x4<f32>`, the model-view-projection or view matrix type of a typical per-frame uniform.

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

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

## Syntax

```ts
const mat4x4fT: { readonly kind: "mat"; readonly cols: 4; readonly rows: 4; readonly elem: "f32"; }
```

## Description

Every `matCxR<f32>` is spellable — build one with [`matT`](https://typeshade.dev/api/matt/) — and this is the one with a named constant because it is the one a renderer reaches for. (It was once the only float matrix, on the recorded ground that “a 2×2 or 3×3 float matrix lays out differently under the WGSL and GLSL std140 rules”. Measured on real ANGLE and Tint, that is half right: a 2×2 does diverge and a 3×3 does not, and what actually decides is the row count — see the `mat` arm of [`ShaderType`](https://typeshade.dev/api/shadertype/) and `wgslLayout`.)

## See also

- [`matT`](https://typeshade.dev/api/matt/)
- [`ShaderType`](https://typeshade.dev/api/shadertype/)

## Source

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