---
title: "SD0016: an error code of the TypeShade compiler"
description: "SD0016, an error code of the TypeShade compiler. host-owned resource has a shape the target cannot spell"
url: https://typeshade.dev/reference/errors/sd0016/
language: en
---

# `SD0016`

Core code

host-owned resource has a shape the target cannot spell

No `"use typeshade"` program on this site raises this code, so the page has no example. The [`fn()`](https://typeshade.dev/api/fn/) builder builds the IR directly and reaches the check at the lines under Source.

The registry text and every compiler message on these pages are the compiler's own English.

## When it fires

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.

## How to fix it

The registry's hint: 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

## See also

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

override (specialization constant) must be a WGSL scalar type

- [Resources](https://typeshade.dev/guide/language/resources/)
- [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

Where the compiler raises this code at commit af54ddad5, one line per file:

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