---
title: "SD0110: portable declared on a non-compute entry"
description: "SD0110, an error code of the TypeShade compiler. portable declared on a non-compute entry"
url: https://typeshade.dev/reference/errors/sd0110/
language: en
---

# `SD0110`

Core code

portable declared on a non-compute entry

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

The portable kernel tier — passes/portable-kernel.ts.

SD0110 is the author-run guard (fn() rejects the declaration on a non-compute stage); SD0111 is the shape gate, reported per violation by the portable-kernel rule at every emit on both writers and thrown by the GLSL lowering. Like SD0109 the per-violation remedy travels in the diagnostic's own message — the analyzer is its single authority — so the hint below states the tier, which is the invariant half.

## How to fix it

The registry's hint: portable is the compute-tier declaration — it needs stage: 'compute'

## See also

**[`SD0109`](https://typeshade.dev/reference/errors/sd0109/)**

a fragment-only builtin is reachable from a vertex or compute entry

**[`SD0111`](https://typeshade.dev/reference/errors/sd0111/)**

portable kernel outside the gather-only tier

- [`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/ir/builder.ts:735`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/builder.ts#L735)
