---
title: "vec2fT: TypeShade 셰이더 API의 타입 분류 상수 참조 문서"
description: "vec2fT, TypeShade API의 타입 분류에 속하는 상수입니다. 기본 vec2<f32>입니다. DSL에서 가장 흔한 벡터 타입이며, 화면 좌표, UV 좌표, 2차원 위치에 쓰입니다."
url: https://typeshade.dev/ko/api/vec2ft/
language: ko
---

# `vec2fT`

상수, 타입 분류

기본 `vec2<f32>`입니다. DSL에서 가장 흔한 벡터 타입이며, 화면 좌표, UV 좌표, 2차원 위치에 쓰입니다. 예를 들어 uv: location(0, `vec2fT`) 프래그먼트 입력 필드나 resolution: `vec2fT` 유니폼이 이에 해당합니다.

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

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

## 구문

```ts
const vec2fT: { readonly kind: "vec"; readonly n: 2; readonly elem: "f32"; }
```

## 설명

[`vec2`](https://typeshade.dev/ko/api/vec2/) 생성자로 값을 만듭니다. 값이 `f32`가 제공하는 것보다 더 높은 정밀도를 필요로 하면 대신 [`vec2f64T`](https://typeshade.dev/ko/api/vec2f64t/)를 씁니다.

## 함께 보기

- [`vec2`](https://typeshade.dev/ko/api/vec2/)
- [`vec2f64T`](https://typeshade.dev/ko/api/vec2f64t/)

## 소스

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