Skip to content

1681-engine / index / maxTextureSize

Function: maxTextureSize() ​

ts
function maxTextureSize(renderer): number | null;

Defined in: src/diagnostics/gpuInfo.ts:11

The largest texture side the GPU takes (WebGL's MAX_TEXTURE_SIZE), or null when the renderer is not WebGL. Many phones stop at 4096, so an atlas planned for 8192 must split its pages there (atlasPageLimit).

Parameters ​

ParameterType
rendererRenderer

Returns ​

number | null

Released under the MIT License.