Microsoft DirectX 8.1 (Visual Basic)

D3DX8.BufferSetData

Sets data in a buffer.

object.BufferSetData( _ 
    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 to load with data.
Index
Index value, specifying the index into the buffer.
TypeSize
Size of the data type to load into the buffer, in bytes.
TypeCount
Count of elements to load into the buffer.
Data
An object holding the data to load into the buffer.

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.