Migrating the model rendering code to use the new gpu api for input buffers and stream format