---
title: "OverrideInfo: TypeShade 셰이더 API의 리플렉션 분류 인터페이스 참조 문서"
description: "OverrideInfo, TypeShade API의 리플렉션 분류에 속하는 인터페이스입니다. 호스트가 파이프라인을 만들 때 넘기는 파이프라인 특수화 상수입니다."
url: https://typeshade.dev/ko/api/overrideinfo/
language: ko
---

# `OverrideInfo`

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

호스트가 파이프라인을 만들 때 넘기는 파이프라인 특수화 상수입니다.

`import type { OverrideInfo } from 'typeshade'`

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

## 구문

```ts
interface OverrideInfo {
  readonly name: string;
  readonly emittedGlsl: string;
  readonly emitted: string;
  readonly type: string;
  readonly default: number | boolean;
}
```

## 설명

호스트가 파이프라인을 만들 때 넘기는 파이프라인 특수화 상수(WGSL `override`)입니다. 두 백엔드의 호스트 쪽 형태는 모두 이 정의에서 파생됩니다. WGSL의 `constants` 사전은 `{ [name]: value }` 형태이고, GLSL의 `#define` 헤더는 항목마다 `#define <name> <value>` 한 줄입니다. 둘 다 `name`을 키로 쓰며, 호스트가 값을 넘기지 않으면 `default`로 돌아갑니다.

## 인스턴스 속성

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

오버라이드를 작성한 이름입니다. 호스트는 이 이름으로 값을 준다([규칙 11.10](https://typeshade.dev/ko/reference/rules/11-10/)).

**`emittedGlsl` 읽기 전용 `string`**

오버라이드의 GLSL 표기이며, 항상 있습니다. 두 표기가 같은 곳에서는 `emitted`와 같습니다.

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

생성된 텍스트에 쓰인 오버라이드 이름이다([규칙 11.10](https://typeshade.dev/ko/reference/rules/11-10/)).

**`type` 읽기 전용 `string`**

**`default` 읽기 전용 `number | boolean`**

## 소스

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