elect
09/20/2017, 11:09 AMdata<Byte>(layer, face, level)[imageOffset] = texel, where
inline fun <reified T> data(layer: Int, face: Int, level: Int) = when (T::class) {
Vec4b::class -> vec4bData.apply { data = data(layer, face, level) }
java.lang.Byte::class -> byteData.apply { data = data(layer, face, level) }
else -> throw Error()
}
Everything fine, but if I substitute java.lang.Byte::class with Byte::class, it throw the error, that is the case isnt chose... why?