---
title: "규칙 10.5: 확장과 기능, TypeShade 셰이더 언어 설계 규칙과 그 근거, 출처, 검증 방식"
description: "TypeShade 언어 설계 규칙 10.5(확장과 기능)입니다. A GLSL lowering of a WGSL-only feature (the family #130 to #139: 1d, multisampled, depth read both ways…"
url: https://typeshade.dev/ko/reference/rules/10-5/
language: ko
---

# 규칙 10.5

10장, 확장과 기능 테스트

A GLSL lowering of a WGSL-only feature (the family [#130](https://github.com/typeshade/typeshade/issues/130) to [#139](https://github.com/typeshade/typeshade/issues/139): 1d, multisampled, depth read both ways, gather, cube array, storage texture, read-write storage, atomics, and barriers) is deferred by the maintainer, and must not be written until the deferral is lifted. The deferral is lifted for read-write storage, atomics, barriers and the compute entry ([#137](https://github.com/typeshade/typeshade/issues/137), [#138](https://github.com/typeshade/typeshade/issues/138), [#139](https://github.com/typeshade/typeshade/issues/139)): a compute entry lowers to the pass program of change 0054, its memory as words, its barriers and atomic operations as the cuts of the phased order ([Rule 11.8](https://typeshade.dev/ko/reference/rules/11-8/), surface §23 and §25). It is lifted for the storage texture ([#136](https://github.com/typeshade/typeshade/issues/136)) in a compute entry on WebGL2 alone: the pass program holds the texture as a memory root of words, read in from the texture before the first pass and drawn back into it after the last, and a format the tier does not support yet is refused as “not supported yet on the WebGL2 tier (Rule 10.5)”, a fallback for it being later work (OD-11; change 0054, fifth amendment, surface §33). Until it is lifted for the others ([#131](https://github.com/typeshade/typeshade/issues/131) to [#135](https://github.com/typeshade/typeshade/issues/135), and [#136](https://github.com/typeshade/typeshade/issues/136) in a draw), each of those features must fail closed on GLSL by [Rule 10.3](https://typeshade.dev/ko/reference/rules/10-3/), and the deferral must be written where the refusal is.

규칙 본문과 그 아래 항목은 설계 문서에 적힌 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.

## 근거

the lowering family is one design ([#130](https://github.com/typeshade/typeshade/issues/130)’s fidelity classes) and is worked one item at a time when the maintainer says so.

## 출처

the deferral recorded in [#162](https://github.com/typeshade/typeshade/issues/162), whose summary asks that the lowering family be worked one item at a time; decision 1 of change `0054` in `changes/`, which lifts it for [#137](https://github.com/typeshade/typeshade/issues/137), [#138](https://github.com/typeshade/typeshade/issues/138) and [#139](https://github.com/typeshade/typeshade/issues/139).

## 검증 방식

테스트로 확인합니다. 테스트나 게이트 스크립트, CI 워크플로가 이 규칙을 가리키고, 아래 파일 가운데 하나라도 규칙을 더는 가리키지 않으면 추적 검사가 실패합니다.

컴파일러가 이 규칙을 적용하는 곳을 규칙이 직접 적은 내용입니다.

review; `capability-reachability.test.ts` records which target each capability has a row for.

커밋 af54ddad5에서 이 규칙을 확인하는 파일입니다. 파일마다 규칙을 처음 가리키는 줄로 연결했습니다.

- [`src/core/backends/capability-reachability.test.ts:1`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/capability-reachability.test.ts#L1)

## 설명하는 절

커밋 af54ddad5의 언어 문서에서 이 규칙을 설명하는 절입니다.

- [§23 Atomics](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#23-atomics)
- [§24 Module variables](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#24-module-variables)
- [§25 Barriers, and running a workgroup on the CPU](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#25-barriers-and-running-a-workgroup-on-the-cpu)
- [§33 A storage texture](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#33-a-storage-texture)
- [§36 The WGSL-only textures: `texture_1d`, `texture_cube_array`, `textureGather`](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#36-the-wgsl-only-textures-texture_1d-texture_cube_array-texturegather)
- [§37 A multisampled texture, read one sample at a time](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#37-a-multisampled-texture-read-one-sample-at-a-time)
- [§67 Calling an entry point from host code](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#67-calling-an-entry-point-from-host-code)
- [§77 The subgroup built-in functions: `subgroupAdd` and the twenty beside it](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#77-the-subgroup-built-in-functions-subgroupadd-and-the-twenty-beside-it)

## 함께 보기

- [규칙 10.4](https://typeshade.dev/ko/reference/rules/10-4/) 테스트
- [규칙 11.1](https://typeshade.dev/ko/reference/rules/11-1/) 테스트
- [규칙 10.3](https://typeshade.dev/ko/reference/rules/10-3/)
- [규칙 11.8](https://typeshade.dev/ko/reference/rules/11-8/)
- [설계 규칙](https://typeshade.dev/ko/reference/rules/)
- [오류 코드](https://typeshade.dev/ko/reference/errors/)

## 소스

커밋 af54ddad5의 규칙 원문:

- [`docs/language-design.md:1426`](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/language-design.md#L1426) (설계 문서)
- [`reqs/rules/RULE-1005.md`](https://github.com/typeshade/typeshade/blob/af54ddad5/reqs/rules/RULE-1005.md) (추적 항목)
