CapabilityRow
On this page

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 only Capability
supportread only Readonly<Record<string, CapSupportKind>>

Keyed by Backend.id, one entry per backend passed in.

declarableread only boolean

Whether a module may name this capability in enables. False for the nine capabilities derived from a module’s shape (storageBuffer through textureGather, bgra8unormStorage and packed4x8Dot), which DeclarableCapability excludes from enables.

See also

Source

src/core/backend.ts, line 397, at commit 26de7be8

Edit this page Report a problem