D3DXCreateBuffer function

Creates a buffer object.

Syntax

HRESULT D3DXCreateBuffer(
  _In_  DWORD        NumBytes,
  _Out_ LPD3DXBUFFER *ppBuffer
);

Parameters

NumBytes [in]

Type: DWORD

Size of the buffer to create, in bytes.

ppBuffer [out]

Type: LPD3DXBUFFER*

Address of a pointer to an ID3DXBuffer interface, representing the created buffer object.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: E_OUTOFMEMORY.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

General Purpose Functions