Use index to set input of vertex_shader and output of pixel_shader.