ID3DXPRTBuffer::AddBuffer method

Adds another buffer to the ID3DXPRTBuffer and stores the results in ID3DXPRTBuffer.

Syntax

HRESULT AddBuffer(
  [in] LPD3DXPRTBUFFER pBuffer
);

Parameters

pBuffer [in]

Type: LPD3DXPRTBUFFER

Pointer to a buffer that contains members to be added to the respective members of the ID3DXPRTBuffer buffer.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.

Remarks

pBuffer and ID3DXPRTBuffer must have the same number of samples, coefficients, and color channels; the method will fail otherwise.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTBuffer