---
title: "VertexLayout: TypeShade 셰이더 API의 리플렉션 분류 인터페이스 참조 문서"
description: "VertexLayout, TypeShade API의 리플렉션 분류에 속하는 인터페이스입니다. 모듈의 @vertex 진입점이 쓰는 버텍스 버퍼 레이아웃입니다."
url: https://typeshade.dev/ko/api/vertexlayout/
language: ko
---

# `VertexLayout`

인터페이스, 리플렉션 분류

모듈의 `@vertex` 진입점이 쓰는 버텍스 버퍼 레이아웃입니다. 모든 `@location` 입력과, 이 입력들이 채우는 인터리브되고 빈틈없이 배열된 arrayStride를 담습니다.

`import type { VertexLayout } from 'typeshade'`

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

## 구문

```ts
interface VertexLayout {
  readonly attributes: readonly VertexAttr[];
  readonly arrayStride: number;
}
```

## 설명

[`reflect`](https://typeshade.dev/ko/api/reflect/)는 `module.funcs`에서 찾은 첫 번째 `@vertex` 진입점을 기술합니다. 진입점이 둘 이상인 모듈은 먼저 선언된 진입점의 `VertexLayout`을 받습니다. 모듈에 `@location` 버텍스 매개변수가 없으면 `Reflection.vertex`는 `undefined`입니다.

## 인스턴스 속성

**`attributes` 읽기 전용 `readonly VertexAttr[]`**

**`arrayStride` 읽기 전용 `number`**

## 함께 보기

- [`reflect`](https://typeshade.dev/ko/api/reflect/)

## 소스

[`src/core/reflect/entry-types.ts`, 29행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/reflect/entry-types.ts#L29), 커밋 af54ddad5 기준
