D3DX8.BufferGetData
Retrieves data from a buffer.
object.BufferGetData( _
Buffer As D3DXBuffer, _
Index As Long, _
TypeSize As Long, _
TypeCount As Long, _
Data As Any)
Parts
- object
- Object expression that resolves to a D3DX8 object.
- Buffer
- D3DXBuffer object, the buffer containing the data to retrieve.
- Index
- Index value, specifying the index into the buffer.
- TypeSize
- Size of the data type to retrieve from the buffer, in bytes.
- TypeCount
- Count of elements to retrieve from the buffer.
- Data
- After the method returns, an object holding the retrieved buffer data.
Error Codes
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.