---
title: "CapSupportKind: TypeShade 셰이더 API의 백엔드 분류 타입 참조 문서"
description: "CapSupportKind, TypeShade API의 백엔드 분류에 속하는 타입입니다. 한 백엔드가 기능 하나를 지원하는 방식입니다. - 'native': 지원합니다. 생성할 것도 없고 호스트가 켤 것도 없습니다."
url: https://typeshade.dev/ko/api/capsupportkind/
language: ko
---

# `CapSupportKind`

타입, 백엔드 분류

한 백엔드가 기능 하나를 지원하는 방식입니다. - 'native': 지원합니다. 생성할 것도 없고 호스트가 켤 것도 없습니다. - 'directive': 지원합니다. 생성된 소스가 이 기능을 선언합니다.

`import type { CapSupportKind } from 'typeshade'`

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

```ts
type CapSupportKind = 'native' | 'directive' | 'host-feature' | 'unsupported';
```

## 설명

생성기가 그 줄을 씁니다.

- `'host-feature'`: 지원합니다. 파이프라인을 만들기 전에 호스트가 활성화해야 한다(WebGPU 디바이스 기능 또는 WebGL2 확장). [`hostFeaturesFor`](https://typeshade.dev/ko/api/hostfeaturesfor/)가 이 값을 찾아봅니다.
- `'unsupported'`: 대상에 행이 없습니다. 생성기는 소스를 쓰기 전에 [`UnsupportedFeatureError`](https://typeshade.dev/ko/api/unsupportedfeatureerror/)([`SD0030`](https://typeshade.dev/ko/reference/errors/sd0030/))를 던집니다.

한 행이 소스 지시문과 호스트 기능을 함께 가질 수 있습니다. 이때는 `'directive'`가 우선합니다. 생성된 소스를 읽는 사람이 볼 수 있는 쪽이기 때문입니다.

## 함께 보기

- [`hostFeaturesFor`](https://typeshade.dev/ko/api/hostfeaturesfor/)
- [`UnsupportedFeatureError`](https://typeshade.dev/ko/api/unsupportedfeatureerror/)

## 소스

[`src/core/backend.ts`, 364행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backend.ts#L364), 커밋 af54ddad5 기준
