StorageTextureAccess
Type in Types
How a shader may touch a storage texture.
import type { StorageTextureAccess } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
type StorageTextureAccess = 'write' | 'read' | 'read_write';Description
WGSL spells these write, read and
read_write; WebGPU’s bind group layout spells the same three write-only, read-only and
read-write, which is what storageTextureLayoutAccess converts to.
See also
Source
src/core/ir/types.ts, line 98, at commit 26de7be8