Microsoft DirectX 8.1 (Visual Basic)

D3DX8.CreateBuffer

Creates a buffer object.

object.CreateBuffer( _ 
    NumBytes As Long) As D3DXBuffer

Parts

object
Object expression that resolves to a D3DX8 object.
NumBytes
Size of the buffer to create, in bytes.

Return Values

D3DXBuffer object representing the created buffer.

Error Codes

If the method fails, an error is raised and Err.Number can be set to E_OUTOFMEMORY.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.