# C1.Util.DX.DXGI.Factory.CreateSwapChain

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DXGI_Factory_CreateSwapChain_" data-uid="C1.Util.DX.DXGI.Factory.CreateSwapChain*">CreateSwapChain Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DXGI_Factory_CreateSwapChain_" data-uid="C1.Util.DX.DXGI.Factory.CreateSwapChain*"></a>
<h4 id="C1_Util_DX_DXGI_Factory_CreateSwapChain_C1_Util_DX_ComObject_C1_Util_DX_DXGI_SwapChainDescription__" data-uid="C1.Util.DX.DXGI.Factory.CreateSwapChain(C1.Util.DX.ComObject,C1.Util.DX.DXGI.SwapChainDescription@)">CreateSwapChain(ComObject, ref SwapChainDescription)</h4>
<div class="markdown level1 summary"><p>HRESULT IDXGIFactory::CreateSwapChain([In] IUnknown* pDevice,[In] DXGI_SWAP_CHAIN_DESC* pDesc,[Out, Fast] IDXGISwapChain** ppSwapChain)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SwapChain CreateSwapChain(ComObject deviceRef, ref SwapChainDescription descRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateSwapChain(deviceRef As ComObject, ByRef descRef As SwapChainDescription) As SwapChain</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></td>
      <td><span class="parametername">deviceRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.SwapChainDescription.html">SwapChainDescription</a></td>
      <td><span class="parametername">descRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.SwapChain.html">SwapChain</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
