Creates a new instance of SwapChain.
Declaration Syntax
C# |
public SwapChain( IntPtr windowHandle, PresentationParameters presentParams )
Parameters
- windowHandle (IntPtr)
- The handle to the window the swap chain is to bounded to. This is the window that the swap chain presents to.
- presentParams (PresentationParameters)
- The presentation parameters defining how the swap chain should be setup..
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the presentation parameters are invalid, e.g. bad format or multi sample values. |
TeslaException | Thrown if the render system is not set or if the implementation failed to be created. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)