Microsoft DirectX 8.1 (Visual Basic)

D3DX8.BufferGetTextureName

Retrieves the name of a texture from a buffer.

object.BufferGetTextureName( _ 
    MaterialBuffer As D3DXBuffer, _ 
    Index As Long) As String

Parts

object
Object expression that resolves to a D3DX8 object.
MaterialBuffer
D3DXBuffer object, the buffer containing the material to retrieve.
Index
Index value, specifying the buffer's index.

Return Values

Returned String, identifying the name of the texture contained in the queried 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.