---
title: "AddressSpace: type in IR, TypeShade API reference"
description: "AddressSpace, a type in IR. The BindingDecl.space a resource binding lives in: WGSL's var<uniform> or var<storage, ...>."
url: https://typeshade.dev/api/addressspace/
language: en
---

# `AddressSpace`

Type in IR

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

`import type { AddressSpace } from 'typeshade'`
`import type { AddressSpace } from 'typeshade/core/ir'`

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

## Syntax

```ts
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`](https://typeshade.dev/api/bindingdecl/), which applies only when this is `'storage'`.

## See also

- [`BindingDecl`](https://typeshade.dev/api/bindingdecl/)

## Source

[`src/core/ir/nodes/host-interface-decls.ts`, line 29](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/nodes/host-interface-decls.ts#L29), at commit af54ddad5
