This method of the Direct3dExecuteBuffer Class obtains the command data from the execute buffer.
public void lock(D3dExecuteBufferDesc Desc);
Desc | The D3dExecuteBufferDesc object. |
This method can obtain data from either system or video memory as specified by the caps field of Desc. The length of the array assigned to buffer must be set in the bufferSize field before making the call.
The application can use the lock method to request that Direct3D move the data between system or video memory.
This method fails if the Direct3dExecuteBuffer object is locked—that is, if another thread is accessing the buffer or if a Direct3dDevice.execute method that was issued on this buffer has not yet been completed.