storageFormatFeature
On this page

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'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

const storageFormatFeature: (
format: StorageTextureFormat,
) => string | undefined

Parameters

format StorageTextureFormat

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.ts, line 127, at commit 26de7be8

Edit this page Report a problem