Delayed Init of Primitives
lateinit modifier is not allowed on properties of primitive types.
Iโm trying to define
private lateinit var shader: Intwhich results in the error above.
The solution is to use Delegates.notNull<>() which turns the property into a non-primitive type but the behaviour is the same.