storageTextureLayoutAccess
On this page

storageTextureLayoutAccess()

Function in Types

What WebGPU's GPUStorageTextureBindingLayout.access calls a WGSL access mode.

import { storageTextureLayoutAccess } from 'typeshade'

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

Syntax

const storageTextureLayoutAccess: (
access: StorageTextureAccess,
) => "write-only" | "read-only" | "read-write"

Parameters

access StorageTextureAccess

Return value

'write-only' | 'read-only' | 'read-write'

Description

The two vocabularies differ by a hyphen and a word, and a host passing the WGSL spelling straight through gets a validation error, so reflection carries the host’s spelling.

Source

src/core/ir/types.ts, line 183, at commit 26de7be8

Edit this page Report a problem