Occurs when the Dispose method is called or when the SwapChain object is finalized and collected by the garbage collector of the .NET common language runtime.
Updates the unmanaged pointer for this SwapChain object. This method supports the Microsoft® .NET Framework infrastructure and is not intended to be used directly in your code.
Each device always has at least one swap chain, which is known as the implicit swap chain. Additional SwapChain objects can be created for rendering multiple views from the same device.
How Do I...?
Create an Additional Swap Chain
This example demonstrates how to create an additional swap chain using the SwapChain class. Additional swap chains are useful for supporting multiple viewports; for example, a single window partitioned into four sub-windows, each with different views of the same scene.
In DirectX 9.0 for Managed Code, each Device is created with a default swap chain known as the implicit swap chain. Using the SwapChain class allows creation of additional swap chains for rendering operations.
To create a new swap chain:
Create an instance of the PresentParameters class, or use an existing instance and set the presentation properties to the values you need for the swap chain.
Then create a swap chain object using the SwapChain class constructor.
In the following C# code example, device is assumed to be the rendering Device.
[C#]
// Create a swap chain using an existing instance of PresentParameters.
SwapChain sc = new SwapChain(device, presentParams);