---
title: "SD0014: TypeShade 컴파일러가 진단에 붙이는 오류 코드와 그 뜻, 고치는 법"
description: "SD0014, TypeShade 컴파일러의 오류 코드입니다. override (specialization constant) must be a WGSL scalar type"
url: https://typeshade.dev/ko/reference/errors/sd0014/
language: ko
---

# `SD0014`

코어 코드

override (specialization constant) must be a WGSL scalar type

레지스트리 설명과 컴파일러 메시지는 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.

## 프런트엔드에서

같은 실수를 한 `"use typeshade"` 파일은 이 검사까지 오지 않습니다. 프런트엔드가 자기 코드로 먼저 거부하기 때문입니다. 빌드할 때 컴파일한 아래 프로그램에는 다음 진단이 나옵니다.

example.shade.ts

```ts
"use typeshade"

declare const tint: override<vec3>

@fragment
export function main(uv: location<0, vec2>): vec4 {
  return vec4(uv, 0., 1.)
}
```

**[TS8014](https://typeshade.dev/ko/reference/errors/ts8014/)** error, 3행: override "tint" must be `f32`, `i32`, `u32` or bool, not `vec3`.

## 고치는 법

레지스트리의 힌트: overrideConst supports bool/`i32`/`u32`/`f32` only — WGSL forbids vec/matrix/array/struct overrides; decompose into per-component scalar overrides

## 함께 보기

**[`TS8014`](https://typeshade.dev/ko/reference/errors/ts8014/) `TOP_LEVEL`**

파일 최상위에 컴파일러가 선언으로 받을 수 없는 것이 있습니다. 선언이 아닌 문이거나, 거부하는 형태의 모듈 수준 선언입니다.

- [리소스](https://typeshade.dev/ko/guide/language/resources/)
- [`TypeShadeError`](https://typeshade.dev/ko/api/typeshadeerror/)
- [오류 코드](https://typeshade.dev/ko/reference/errors/)

## 소스

커밋 af54ddad5에서 컴파일러가 이 코드를 내는 곳입니다. 파일마다 한 줄씩 적었습니다.

- [`src/core/ir/builder.ts:1241`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/builder.ts#L1241)
