device: implement Draw[Indexed]Primitive[UP]