IDirect3DMobileDevice::CreateAdditionalSwapChain (Windows CE 5.0)

Send Feedback

This method creates an additional swap chain for rendering multiple views.

HRESULT CreateAdditionalSwapChain(  D3DMPRESENT_PARAMETERS* pPresentationParameters,  IDirect3DMobileSwapChain** pSwapChain);

Parameters

  • pPresentationParameters
    [in] Pointer to a D3DMPRESENT_PARAMETERS structure that represents the presentation parameters for the new swap chain. This value cannot be NULL.
  • pSwapChain
    [out] Address of a pointer to an IDirect3DMobileSwapChain interface that represents the additional swap chain.

Return Values

If the method succeeds, the return value is D3DM_OK (see D3DM Values).

If the method fails, the return value can be E_OUTOFMEMORY, or one of the following D3DMERR Values.

  • D3DMERR_MEMORYPOOLEMPTY
  • D3DMERR_INVALIDCAL

Remarks

There is always at least one swap chain (the implicit swap chain) for each device, because Microsoft® Direct3D Mobile® has one swap chain as a property of the device.

Note that any given device can support only one full-screen swap chain.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: D3dm.h.
Link Library: D3dm.lib, D3dmguid.lib.

See Also

IDirect3DMobileDevice | D3DMPRESENT_PARAMETERS | IDirect3DMobileSwapChain

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.