getCacheLayerIndex

fun getCacheLayerIndex(layerIdx: Int): Int(source)

Returns the cache layer index for the given layer. Shared layers map to a single cache slot.