?/TD> |
Microsoft DirectX 9.0 |
Gets a pointer to a swap chain.
Syntax
HRESULT GetSwapChain(
UINT iSwapChain, IDirect3DSwapChain9 **ppSwapChain );
Parameters
- iSwapChain
- [in] The swap chain ordinal value. For more information, see NumberOfAdaptersInGroup in D3DCAPS9.
- ppSwapChain
- [in] Pointer to an IDirect3DSwapChain9 interface that will receive a copy of swap chain.
Return Value
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.