IDirect3DMobileDevice::CreateAdditionalSwapChain
A version of this page is also available for
4/8/2010
This method creates an additional swap chain for rendering multiple views.
Syntax
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 Value
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
Header | d3dm.h |
Library | D3dm.lib, D3dmguid.lib |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
IDirect3DMobileDevice
D3DMPRESENT_PARAMETERS
IDirect3DMobileSwapChain