maxTextureSize function
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.
import { maxTextureSize } from '@dioramajs/diorama/kit'. Caps decodes of big pictures.
function maxTextureSize(ctx: Pick<EffectContext, 'render'>): numberParameters
| Name | Type | Description |
|---|---|---|
ctx | Pick<EffectContext, 'render'> |
Also exported from @dioramajs/effects/kit.
Defined in packages/effects/src/kit.ts.