StorageTextureAccess
On this page

StorageTextureAccess

Type in Types

How a shader may touch a storage texture.

import type { StorageTextureAccess } from 'typeshade'
import type { StorageTextureAccess } from 'typeshade/core/ir'

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

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/storage-texture.ts, line 79, at commit af54ddad5

Edit this page Report a problem