DrawPrimitive Methods and Execute Buffers

DirectX 5 introduced a radically new way to use Direct3D Immediate Mode. Previously, you had to fill and execute the execute buffers to accomplish any task. Now, you can use the DrawPrimitive methods, which allow you to draw primitives directly.

The IDirect3DDevice interface supports execute buffers. The IDirect3DDevice3 interface supports the DrawPrimitive methods. Despite the names of these interfaces, IDirect3DDevice3 is not a COM iteration of the IDirect3DDevice interface. Although there is some overlap in the functionality of the interfaces, they are separate implementations. This means that you cannot call IDirect3DDevice::QueryInterface to retrieve an IDirect3DDevice3 interface. You must call the IDirect3D3::CreateDevice method, instead.

For more information about the DrawPrimitive methods, see Rendering. For more information about working with execute buffers, see Using Execute Buffers. For more information about device objects, see Direct3D Devices.