storageFormatFeature()
함수, 타입 분류
어떤 장치든 이 형식에 저장하기 전에 필요한 장치 기능입니다. 형식이 코어 형식이면 undefined입니다.
import { storageFormatFeature } from 'typeshade'import { storageFormatFeature } from 'typeshade/core/ir'
설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.
구문
const storageFormatFeature: ( format: StorageTextureFormat,) => string | undefined매개변수
formatStorageTextureFormat
반환값
string | undefined
설명
이름은 WebGPU가 정한 것이며, GPUAdapter.features가 보고하는 그대로입니다. 그래서 호스트는 이를 requestDevice({ requiredFeatures })에 그대로 넘길 수 있습니다.
소스
src/core/ir/types/storage-texture.ts, 108행, 커밋 af54ddad5 기준