Make texture and shader count properties readonly.