get_n_textures


Description:

public int get_n_textures ()

Returns the number of textures that the shader requires.

This can be used to check that the a passed shader works in your usecase. It is determined by looking at the highest u_textureN value that the shader defines.

Parameters:

this

a `GskGLShader`

Returns:

The number of texture inputs required by this