storageTextureLayoutAccess
On this page

storageTextureLayoutAccess()

Function in Types

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

import { storageTextureLayoutAccess } from 'typeshade/core/ir'

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

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

Edit this page Report a problem