---
title: "texture2dMsfT: TypeShade 셰이더 API의 타입 분류 상수 참조 문서"
description: "texture2dMsfT, TypeShade API의 타입 분류에 속하는 상수입니다. 다중 샘플 2D 텍스처입니다. MSAA 렌더 타깃의 리졸브 원본을 바인딩하며, 샘플을 하나씩 textureLoad로 읽어 샘플별 평균을 내는 루프 안에서 씁니다."
url: https://typeshade.dev/ko/api/texture2dmsft/
language: ko
---

# `texture2dMsfT`

상수, 타입 분류

다중 샘플 2D 텍스처입니다. MSAA 렌더 타깃의 리졸브 원본을 바인딩하며, 샘플을 하나씩 `textureLoad`로 읽어 샘플별 평균을 내는 루프 안에서 씁니다.

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

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

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

## 설명

(`sampleCount > 1 ? texture2dMsfT : texture2dfT`)처럼 생성 시점에 타입을 고르는 호스트는 한 셰이더 소스로 MSAA 경로와 단일 샘플 경로를 모두 제공할 수 있습니다.

## 소스

[`src/core/ir/types/texture-types.ts`, 23행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/types/texture-types.ts#L23), 커밋 af54ddad5 기준
