function getTextureIndex( textures, name ) {

	for ( let i = 0; i < textures.length; i ++ ) {

		if ( textures[ i ].name === name ) {

			return i;

		}

	}

	return -1;

}
Returns the MRT texture index for the given name.

@param {Array<Texture>} textures - The textures of a MRT-configured render target.
@param {string} name - The name of the MRT texture which index is requested.
@return {number} The texture index.