---
title: "texture_multisampled_2d: type, TypeShade language reference"
description: "texture_multisampled_2d, a type in the TypeShade language reference. A multisampled 2D texture, read one sample at a time with textureLoad(t, coords…"
url: https://typeshade.dev/reference/types/texture_multisampled_2d/
language: en
---

# `texture_multisampled_2d`

Type

A multisampled 2D texture, read one sample at a time with `textureLoad(t, coords, sampleIndex)` and never filtered.

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

## Syntax

```ts
type texture_multisampled_2d<E extends TextureElem = f32> = { readonly [textureTag]: readonly [E, '2d-ms'] }
```

A signature may name a type the ambient file declares for its own use. These are those declarations.

**`TextureElem`**

`type TextureElem = f32 | i32 | u32`

## Parameters

- `E` optional `TextureElem`

## Description

Declared as `declare const t: texture_multisampled_2d<f32>`; it derives the `msaaTextureLoad` capability, whose GLSL lowering is not supported yet ([Rule 10.5](https://typeshade.dev/reference/rules/10-5/)).

## Examples

- [`gallery/msaa-resolve/msaa-resolve.shade.ts`](https://typeshade.dev/guide/examples/msaa-resolve/)

## See also

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