---
title: "TypeArray: TypeShade 셰이더 API의 레이아웃 분류 인터페이스 참조 문서"
description: "TypeArray, TypeShade API의 레이아웃 분류에 속하는 인터페이스입니다. 요소 타입이 일반 타입인 고정 크기 배열 유니폼 필드입니다. 예: dash_array: arrayOf(vec4fT, 2)."
url: https://typeshade.dev/ko/api/typearray/
language: ko
---

# `TypeArray`

인터페이스, 레이아웃 분류

요소 타입이 일반 타입인 고정 크기 배열 유니폼 필드입니다. 예: dash\_array: arrayOf(vec4fT, 2).

`import type { TypeArray } from 'typeshade'`
`import type { TypeArray } from 'typeshade/core/ir'`

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

## 구문

```ts
interface TypeArray<T extends ShaderType> {
  readonly elemType: T;
  readonly count: number;
}
```

## 설명

필드 프록시는 `.at(i)`를 제공합니다. 이 메서드는 타입이 지정된 요소 읽기를 반환합니다.

## 인스턴스 속성

**`elemType` 읽기 전용 `T`**

요소의 셰이더 타입입니다.

**`count` 읽기 전용 `number`**

배열의 길이입니다.

## 소스

[`src/core/sot.ts`, 622행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/sot.ts#L622), 커밋 af54ddad5 기준
