---
title: "SD0016: TypeShade 컴파일러가 진단에 붙이는 오류 코드와 그 뜻, 고치는 법"
description: "SD0016, TypeShade 컴파일러의 오류 코드입니다. host-owned resource has a shape the target cannot spell"
url: https://typeshade.dev/ko/reference/errors/sd0016/
language: ko
---

# `SD0016`

코어 코드

host-owned resource has a shape the target cannot spell

이 사이트의 `"use typeshade"` 프로그램 가운데 이 코드를 내는 것이 없어서 이 페이지에는 예제가 없습니다. [`fn()`](https://typeshade.dev/ko/api/fn/) 빌더는 IR을 직접 만들기 때문에 소스 절에 적힌 줄의 검사에 닿습니다.

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

## 발생 조건

Split out of SD0014. hostUniform borrowed that code for a shape it does not describe, so a reader who hit it was pointed at specialization constants and told to decompose into "per-component scalar overrides" — advice for a different declarator.

## 고치는 법

레지스트리의 힌트: hostUniform takes a scalar/vector/matrix — a host-owned struct is hostBlock, which chooses its GLSL spelling with `glsl: "loose" | "std140-block"`; a loose block flattens to one uniform per member, so its members must themselves be scalar/vector/matrix

## 함께 보기

**[`SD0014`](https://typeshade.dev/ko/reference/errors/sd0014/)**

override (specialization constant) must be a WGSL scalar type

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

## 소스

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

- [`src/core/sot.ts:913`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/sot.ts#L913) (2곳)
