---
title: "SD0111: portable kernel outside the gather-only tier"
description: "SD0111, TypeShade 컴파일러의 오류 코드입니다. portable kernel outside the gather-only tier"
url: https://typeshade.dev/ko/reference/errors/sd0111/
language: ko
---

# `SD0111`

코어 코드

portable kernel outside the gather-only tier

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

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

## 발생 조건

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.

## 고치는 법

레지스트리의 힌트: the portable tier is out\[gid.x\] = f(reads): a 1-D gid and workgroup, one `u32` storage output written once at the invocation index, a `vec4<u32>` dispatch uniform, no raw statements — restructure the kernel, or drop `portable` so that it runs on WebGL2 as the pass program ([Rule 8.24](https://typeshade.dev/ko/reference/rules/8-24/))

## 이 코드가 적용하는 규칙

**[규칙 8.7](https://typeshade.dev/ko/reference/rules/8-7/) 테스트**

`@compute` carries the workgroup size as an array literal of one to three positive whole-number literals, integer module constants or `u32` override names, `x`, `y` and `z`, a missing `y` or `z` being 1, and the default is 64; every default extent reaches reflection and the manifest, and each override name reaches WGSL’s `@workgroup_size`.

**[규칙 8.24](https://typeshade.dev/ko/reference/rules/8-24/) 테스트**

An exported `@compute` entry is called from host code as `entry(bindings, workgroups)`.

## 함께 보기

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

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

**[`SD0110`](https://typeshade.dev/ko/reference/errors/sd0110/)**

portable declared on a non-compute entry

- [`TypeShadeError`](https://typeshade.dev/ko/api/typeshadeerror/)
- [오류 코드](https://typeshade.dev/ko/reference/errors/)

## 소스

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

- [`src/core/backends/glsl/compute-lowering.ts:47`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/glsl/compute-lowering.ts#L47)
- [`src/core/passes/lint/rules/portable-kernel.ts:34`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/lint/rules/portable-kernel.ts#L34)
