---
title: "texture2dMsfT: constant in Types, TypeShade API reference"
description: "texture2dMsfT, a constant in Types. A multisampled 2D texture: the resolve-source binding for an MSAA render target…"
url: https://typeshade.dev/api/texture2dmsft/
language: en
---

# `texture2dMsfT`

Constant in Types

A multisampled 2D texture: the resolve-source binding for an MSAA render target, read one sample at a time with `textureLoad` inside a per-sample averaging loop.

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

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

## Syntax

```ts
const texture2dMsfT: { readonly kind: "texture"; readonly dim: "2d-ms"; readonly elem: "f32"; }
```

## Description

A host that chooses the type at emit time (`sampleCount > 1 ? texture2dMsfT : texture2dfT`) can serve both the MSAA and the single-sample path from one shader source.

## Source

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