# C1.Util.DX.DXGI.SwapChain2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_SwapChain2" data-uid="C1.Util.DX.DXGI.SwapChain2" class="text-break">SwapChain2 Class
</h1>
  <div class="markdown level0 summary"><p>IDXGISwapChain2</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.DXGI.DXGIObject.html">DXGIObject</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.DXGI.DeviceChild.html">DeviceChild</a></div>
    <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.SwapChain.html">SwapChain</a></div>
    <div class="level7"><a class="xref" href="C1.Util.DX.DXGI.SwapChain1.html">SwapChain1</a></div>
    <div class="level8"><span class="xref">SwapChain2</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.DXGI.html">C1.Util.DX.DXGI</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_DXGI_SwapChain2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;a8be2ac4-199f-4946-b331-79599fb98de7&quot;)]
public class SwapChain2 : SwapChain1, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;a8be2ac4-199f-4946-b331-79599fb98de7&quot;)&gt;
Public Class SwapChain2
    Inherits SwapChain1
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2__ctor_System_IntPtr_" data-uid="C1.Util.DX.DXGI.SwapChain2.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.-ctor.html#C1_Util_DX_DXGI_SwapChain2__ctor_System_IntPtr_">SwapChain2(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.html">SwapChain2</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_MatrixTransform" data-uid="C1.Util.DX.DXGI.SwapChain2.MatrixTransform">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.MatrixTransform.html#C1_Util_DX_DXGI_SwapChain2_MatrixTransform">MatrixTransform</a>
        </td>
        <td class="markdown level1 summary"><p>GetMatrixTransform / SetMatrixTransform</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_SourceSize" data-uid="C1.Util.DX.DXGI.SwapChain2.SourceSize">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.SourceSize.html#C1_Util_DX_DXGI_SwapChain2_SourceSize">SourceSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the source region used for the swap chain.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_GetFrameLatencyWaitableObject" data-uid="C1.Util.DX.DXGI.SwapChain2.GetFrameLatencyWaitableObject">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.GetFrameLatencyWaitableObject.html#C1_Util_DX_DXGI_SwapChain2_GetFrameLatencyWaitableObject">GetFrameLatencyWaitableObject()</a>
        </td>
        <td class="markdown level1 summary"><p>void* IDXGISwapChain2::GetFrameLatencyWaitableObject()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_GetMatrixTransform_C1_Util_DX_Matrix3x2__" data-uid="C1.Util.DX.DXGI.SwapChain2.GetMatrixTransform(C1.Util.DX.Matrix3x2@)">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.GetMatrixTransform.html#C1_Util_DX_DXGI_SwapChain2_GetMatrixTransform_C1_Util_DX_Matrix3x2__">GetMatrixTransform(out Matrix3x2)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISwapChain2::GetMatrixTransform([Out] DXGI_MATRIX_3X2_F* pMatrix)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_GetMaximumFrameLatency" data-uid="C1.Util.DX.DXGI.SwapChain2.GetMaximumFrameLatency">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.GetMaximumFrameLatency.html#C1_Util_DX_DXGI_SwapChain2_GetMaximumFrameLatency">GetMaximumFrameLatency()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISwapChain2::GetMaximumFrameLatency([Out] unsigned int* pMaxLatency)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_GetSourceSize_System_Int32__System_Int32__" data-uid="C1.Util.DX.DXGI.SwapChain2.GetSourceSize(System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.GetSourceSize.html#C1_Util_DX_DXGI_SwapChain2_GetSourceSize_System_Int32__System_Int32__">GetSourceSize(out int, out int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISwapChain2::GetSourceSize([Out] unsigned int* pWidth,[Out] unsigned int* pHeight)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_SetMatrixTransform_C1_Util_DX_Matrix3x2__" data-uid="C1.Util.DX.DXGI.SwapChain2.SetMatrixTransform(C1.Util.DX.Matrix3x2@)">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.SetMatrixTransform.html#C1_Util_DX_DXGI_SwapChain2_SetMatrixTransform_C1_Util_DX_Matrix3x2__">SetMatrixTransform(ref Matrix3x2)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISwapChain2::SetMatrixTransform([In] const DXGI_MATRIX_3X2_F* pMatrix)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_SetMaximumFrameLatency_System_Int32_" data-uid="C1.Util.DX.DXGI.SwapChain2.SetMaximumFrameLatency(System.Int32)">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.SetMaximumFrameLatency.html#C1_Util_DX_DXGI_SwapChain2_SetMaximumFrameLatency_System_Int32_">SetMaximumFrameLatency(int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISwapChain2::SetMaximumFrameLatency([In] unsigned int MaxLatency)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_SetSourceSize_System_Int32_System_Int32_" data-uid="C1.Util.DX.DXGI.SwapChain2.SetSourceSize(System.Int32,System.Int32)">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.SetSourceSize.html#C1_Util_DX_DXGI_SwapChain2_SetSourceSize_System_Int32_System_Int32_">SetSourceSize(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGISwapChain2::SetSourceSize([In] unsigned int Width,[In] unsigned int Height)</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_SwapChain2_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_SwapChain2" data-uid="C1.Util.DX.DXGI.SwapChain2.op_Explicit(System.IntPtr)~C1.Util.DX.DXGI.SwapChain2">
          <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.op_Explicit.html#C1_Util_DX_DXGI_SwapChain2_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_SwapChain2">explicit operator SwapChain2(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a> to <a class="xref" href="C1.Util.DX.DXGI.SwapChain2.html">SwapChain2</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
