CapSupportKind
이 페이지에서

CapSupportKind

타입, 백엔드 분류

How one backend supports one capability. - 'native': supported, with nothing to emit and nothing for the host to turn on. - 'directive': supported, and the emitted source declares it.

import type { CapSupportKind } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

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

설명

The emitter writes the line.

  • 'host-feature': supported, and the host must activate it before pipeline creation (a WebGPU device feature or a WebGL2 extension). hostFeaturesFor looks it up.
  • 'unsupported': the target has no row, and emit throws UnsupportedFeatureError (SD0030) before writing any source.

A row can be both directive and host-feature; 'directive' wins in that case, because it is the half a reader of the emitted source can see.

함께 보기

소스

src/core/backend.ts, 394행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고