storageFormatFeature()
Function in Types
The device feature a format needs before any device will store to it, or undefined when the format is core.
import { storageFormatFeature } from 'typeshade'import { storageFormatFeature } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
const storageFormatFeature: ( format: StorageTextureFormat,) => string | undefinedParameters
formatStorageTextureFormat
Return value
string | undefined
Description
The name is WebGPU’s own, as GPUAdapter.features reports it, so a host can
pass it straight to requestDevice({ requiredFeatures }).
Source
src/core/ir/types/storage-texture.ts, line 108, at commit af54ddad5