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 ​
| Parameter | Type |
|---|---|
renderer | Renderer |
Returns ​
number | null