Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.CreateAdditionalSwapChain

Creates an additional swap chain for rendering multiple views.

object.CreateAdditionalSwapChain( _ 
    PresentationParameters As D3DPRESENT_PARAMETERS) As Direct3DSwapChain8

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
PresentationParameters
D3DPRESENT_PARAMETERS type, representing the presentation parameters for the new swap chain.

Return Values

An Direct3DSwapChain8 object, representing the additional swap chain.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
D3DERR_OUTOFVIDEOMEMORY
E_OUTOFMEMORY

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

There is always at least one swap chain for each device because Microsoft® Direct3D® for Microsoft DirectX® 8.x has one swap chain as a property of the device.

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

See Also

Presenting Multiple Views in Windowed Mode