---
title: "WgslMessage: TypeShade 셰이더 API의 배리언트 분류 인터페이스 참조 문서"
description: "WgslMessage, TypeShade API의 배리언트 분류에 속하는 인터페이스입니다. 컴파일 메시지 하나를 게이트가 보고하는 내용으로 좁힌 것입니다."
url: https://typeshade.dev/ko/api/wgslmessage/
language: ko
---

# `WgslMessage`

인터페이스, 배리언트 분류

컴파일 메시지 하나를 게이트가 보고하는 내용으로 좁힌 것입니다.

`import type { WgslMessage } from 'typeshade'`

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

## 구문

```ts
interface WgslMessage {
  readonly type: string;
  readonly message: string;
  readonly lineNum?: number;
}
```

## 설명

`GPUCompilationMessage`를 본떴지만 그 타입에 의존하지 않습니다.

## 인스턴스 속성

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

**`message` 읽기 전용 `string`**

**`lineNum` 선택 사항 읽기 전용 `number`**

## 소스

[`src/core/variant-link.ts`, 187행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/variant-link.ts#L187), 커밋 af54ddad5 기준
