---
title: "PackEntry: TypeShade 셰이더 API의 리플렉션 분류 인터페이스 참조 문서"
description: "PackEntry, TypeShade API의 리플렉션 분류에 속하는 인터페이스입니다. 셰이더 진입점 하나입니다. name과 stage는 packModule()이 항상 제공한 필드입니다."
url: https://typeshade.dev/ko/api/packentry/
language: ko
---

# `PackEntry`

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

셰이더 진입점 하나입니다. name과 stage는 packModule()이 항상 제공한 필드입니다.

`import type { PackEntry } from 'typeshade'`

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

## 구문

```ts
interface PackEntry {
  readonly name: string;
  readonly emitted: string;
  readonly stage: string;
  readonly workgroupSize?: readonly [number, number, number];
  readonly workgroupSizeOverrides?: readonly [string | null, string | null, string | null];
  readonly inputs?: readonly PackIo[];
  readonly outputs?: readonly PackIo[];
  readonly bindings?: readonly { readonly name: string; readonly writes: boolean }[];
  readonly vertex?: GpuVertexLayout;
  readonly line?: PackLine;
}
```

## 인스턴스 속성

**`name` 읽기 전용 `string`**

호스트가 진입점을 호출할 때 쓰는, 작성한 이름입니다.

**`emitted` 읽기 전용 `string`**

생성된 텍스트가 진입점을 선언하는 이름입니다([규칙 11.10](https://typeshade.dev/ko/reference/rules/11-10/)).

**`stage` 읽기 전용 `string`**

**`workgroupSize` 선택 사항 읽기 전용 `readonly [number, number, number]`**

컴퓨트 진입점의 `@workgroup_size(x, y, z)`입니다.

**`workgroupSizeOverrides` 선택 사항 읽기 전용 `readonly [string | null, string | null, string | null]`**

특수화된 워크그룹 축마다의 override 이름입니다. `null`인 축은 `workgroupSize`를 씁니다. `null`은 이 선택적 메타데이터가 JSON 직렬화를 거쳐도 안정적으로 유지되게 합니다.

**`inputs` 선택 사항 읽기 전용 `readonly PackIo[]`**

**`outputs` 선택 사항 읽기 전용 `readonly PackIo[]`**

**`bindings` 선택 사항 읽기 전용 `readonly { readonly name: string; readonly writes: boolean }[]`**

진입점이 호출을 거쳐 닿는 바인딩과, 각 바인딩에 쓰는지 여부입니다.

**`vertex` 선택 사항 읽기 전용 `GpuVertexLayout`**

버텍스 진입점의 버텍스 버퍼입니다. 빈틈없이 패킹되며, 형식을 함께 담습니다.

**`line` 선택 사항 읽기 전용 `PackLine`**

## 소스

[`src/core/manifest-types.ts`, 221행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/manifest-types.ts#L221), 커밋 af54ddad5 기준
