onPreCompileShader

abstract fun onPreCompileShader(id: Int, type: Int, additionalDefines: String)

Called before a shader is compiled.

Parameters

id

of a shader type enumeration. See `mbgl::shaders::BuiltIn` for a list of possible values.

type

of graphics backend the shader is being compiled for. See `mbgl::gfx::Backend::Type` for a list of possible values.

additionalDefines

that specify the permutaion of the shader.