现在我们需要一个顶点缓冲。
记得一点:锁定是非常昂贵的,在你锁定你的顶点缓冲之前,总是先看看象矩阵这样的东西。
One thing to remember: locks are very costly, always look to things like matrices before locking your vertex buffers.
表示顶点缓冲区要求动态使用内存,这样对驱动程序有好处,因为这样可以使驱动程序确定缓冲区的放置位置。
Dynamic Indicates that the vertex buffer requires dynamic memory use, which is useful for drivers because it enables them to determine where to place the buffer.
然后我锁定缓冲以使我能够设置顶点的值。
顶点数据既可以由数据缓冲区提供,也可以由图元镶嵌引擎提供。
Data can be supplied either by the vertex buffer or by the primitive tessellation engine.
顶点数据既可以由数据缓冲区提供,也可以由图元镶嵌引擎提供。
Data can be supplied either by the vertex buffer or by the primitive tessellation engine.
应用推荐