# maxTextureSize

function in `@dioramajs/diorama/kit`

```ts
import { maxTextureSize } from '@dioramajs/diorama/kit'
```

Largest 2D texture side the device takes: the WebGPU device limit (8192 for three r187, which
asks for default limits), WebGL 2 `MAX_TEXTURE_SIZE`, else 4096. Caps decodes of big pictures.

```ts
function maxTextureSize(ctx: Pick<EffectContext, 'render'>): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `ctx` | `Pick<EffectContext, 'render'>` |  |

Also exported from `@dioramajs/effects/kit`.

Defined in [packages/effects/src/kit.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/kit.ts#L192).
