Function: fitsTexture()
ts
function fitsTexture(capabilities, what, width, height, depth?): boolean;Experimental
Whether a width × height texture (× depth for a 3D one) fits the device. When it does not, warns once per what and size, naming the limit; the caller then draws nothing.
Parameters
| Parameter | Type |
|---|---|
capabilities | GpuCapabilities | undefined |
what | string |
width | number |
height | number |
depth? | number |
Returns
boolean