This results in the vertex buffer you created earlier being bound to source index 0, so any vertex element which is pulling its data from source index 0 will retrieve data from this buffer.
This results in the vertex buffer you created earlier being bound to source index 0, so any vertex element which is pulling its data from source index 0 will retrieve data from this buffer.
上面代码的执行结果就是把之前建造的顶点缓存榜定到更早之前创建的资源索引0上面,继而这里所有的顶点元素都可以通过资源索引0来得到他们在缓存中的数据。