AddressSpace
On this page

AddressSpace

Type in IR

The BindingDecl.space a resource binding lives in: WGSL's var<uniform> or var<storage, ...>.

import type { AddressSpace } from 'typeshade'

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

Syntax

type AddressSpace = 'uniform' | 'storage';

Description

The BindingDecl.space a resource binding lives in: WGSL’s var<uniform> or var<storage, ...>. It selects the WGSL declaration spelling and, on GLSL, the choice between a uniform block and an emulated storage-buffer path (WebGL2 GLSL ES 3.00 has no native storage buffer). See BindingDecl.access, which applies only when this is 'storage'.

See also

Source

src/core/ir/nodes.ts, line 505, at commit 26de7be8

Edit this page Report a problem