---
title: "location: TypeShade 언어 참조에 실린 어트리뷰트 이름과 그 시그니처"
description: "location (어트리뷰트), TypeShade 언어 참조 항목입니다. The decorated form of location<I, T>, a numeric shader IO location: uv: location<0…"
url: https://typeshade.dev/ko/reference/attributes/location/
language: ko
---

# `@location`

어트리뷰트

The decorated form of `location<I, T>`, a numeric shader IO location: `uv: location<0, vec2>` for `@location(0) uv: vec2`.

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

## 구문

```ts
declare function location(n: number): (target: unknown, context?: unknown) => void
```

## 매개변수

- `n` `number`

선언에는 TypeScript 데코레이터 런타임이 넘겨주는 `target`과 `context`도 적혀 있습니다. 호출에서는 둘 다 쓰지 않습니다.

## 예제

- [`gallery/id-pick/id-pick.shade.ts`](https://typeshade.dev/ko/guide/examples/id-pick/)
- [`gallery/twin-structs/twin-structs.shade.ts`](https://typeshade.dev/ko/guide/examples/twin-structs/)

## 함께 보기

- [어트리뷰트](https://typeshade.dev/ko/reference/attributes/)
