Example using the simplified packed primitive interface.