ALL_CAPABILITIES
이 페이지에서

ALL_CAPABILITIES

상수, IR 분류

런타임 값으로 쓸 수 있는 모든 Capability입니다. 기능 행렬, 문서 생성기, 커버리지 검사가 이 목록을 순회합니다.

import { ALL_CAPABILITIES } from 'typeshade'
import { ALL_CAPABILITIES } from 'typeshade/core/ir'

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

구문

const ALL_CAPABILITIES: readonly ["storageBuffer", "compute", "msaaTextureLoad", "storageTexture", "texture1d", "textureCubeArray", "textureGather", "f16", "subgroups", "clipDistances", "primitiveIndex", "dualSourceBlending", "floatRenderTarget", "float32Blend", "float32Filterable", "multiview", "bgra8unormStorage", "packed4x8Dot"]

설명

유니온 타입은 런타임 형태가 없으므로 목록을 직접 적어 두며, satisfies 절이 이 목록을 유니온과 어긋나지 않게 맞춰 줍니다.

함께 보기

소스

src/core/ir/nodes/capabilities.ts, 66행, 커밋 af54ddad5 기준

이 페이지 편집 문제 보고