Platform SDK: DirectX |
The Direct3DVertexBuffer7.ProcessVertices method processes untransformed vertices into a transformed or optimized vertex buffer.
object.ProcessVertices( _ vertexOp As CONST_D3DVOPFLAGS, _ destIndex As Long, _ count As Long, _ srcBuffer As Direct3DVertexBuffer7, _ srcIndex As Long, _ dev As Direct3DDevice7, _ flags As CONST_D3DPROCESSVERTICESFLAGS)
If the method fails, an error is raised and Err.Number may be set to one of the following values:
D3DERR_INVALIDVERTEXFORMAT |
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
DDERR_OUTOFMEMORY |
DDERR_SURFACEBUSY |
DDERR_SURFACELOST |
For information on trapping errors, see the Visual Basic Error Trapping topic.
You must always include the D3DVOP_TRANSFORMED flag in the vertexOp parameter. If you fail to include this flag, the method will fail, returning DDERR_INVALIDPARAMS.