getAttributeLocation

fun getAttributeLocation(attributeName: String): Int

Gets the location of a shader attribute variable by name.

Return

The location of the attribute variable, or -1 if not found.

Parameters

attributeName

The name of the attribute variable. You can find the attribute names in the shader code.