Microsoft DirectX 8.0 (C++)

ID3DXBuffer

The ID3DXBuffer interface is used as a data buffer, storing vertex, adjacency, and material information during mesh optimization and loading operations. The buffer object is used to return arbitrary length data.

Also, buffer objects are used to return object code and error messages in methods that assemble vertex and pixel shaders.

The ID3DXBuffer interface is obtained by calling the D3DXCreateBuffer function.

The methods of the ID3DXBuffer interface can be organized into the following group.

Information GetBufferPointer
  GetBufferSize

The ID3DXBuffer interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.

IUnknown AddRef
  QueryInterface
  Release

The LPD3DXBUFFER type is defined as a pointer to the ID3DXBuffer interface.

typedef struct ID3DXBuffer *LPD3DXBUFFER;

Requirements

  Header: Declared in D3dx8mesh.h.
  Import Library: Use D3dx8.lib.