Phaser API Documentation

  Version: 
<static> checkShaderMax(gl, maxTextures)

Description:

Check to see how many texture units the GPU supports, based on the given config value. Then tests this against the maximum number of iterations GLSL can support.

Parameters:

name type description
gl WebGLRenderingContext

The WebGLContext used to create the shaders.

maxTextures number

The Game Config maxTextures value.

Returns:
Description:

The number of texture units that is supported by this browser and GPU.

Type:
  • number
Since: 3.50.0