CapabilityRow
Interface in Backends
One row of the capability matrix: a capability and how each backend supports it.
import type { CapabilityRow } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface CapabilityRow { readonly capability: Capability; readonly support: Readonly<Record<string, CapSupportKind>>; readonly declarable: boolean;}Instance properties
capabilityread onlyCapabilitysupportread onlyReadonly<Record<string, CapSupportKind>>Keyed by
Backend.id, one entry per backend passed in.declarableread onlybooleanWhether a module may name this capability in
enables. False for the nine capabilities derived from a module’s shape (storageBufferthroughtextureGather,bgra8unormStorageandpacked4x8Dot), whichDeclarableCapabilityexcludes fromenables.
See also
Source
src/core/backend.ts, line 397, at commit 26de7be8