# C1.Util.DX.DXGI.Device2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_Device2" data-uid="C1.Util.DX.DXGI.Device2" class="text-break">Device2 Class
</h1>
  <div class="markdown level0 summary"><p>IDXGIDevice2</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.Device.html">Device</a></div>
    <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.Device1.html">Device1</a></div>
    <div class="level7"><span class="xref">Device2</span></div>
      <div class="level8"><a class="xref" href="C1.Util.DX.DXGI.Device3.html">Device3</a></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_Device2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;05008617-fbfd-4051-a790-144884b4f6a9&quot;)]
public class Device2 : Device1, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;05008617-fbfd-4051-a790-144884b4f6a9&quot;)&gt;
Public Class Device2
    Inherits Device1
    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_Device2__ctor_System_IntPtr_" data-uid="C1.Util.DX.DXGI.Device2.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.-ctor.html#C1_Util_DX_DXGI_Device2__ctor_System_IntPtr_">Device2(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.DXGI.Device2.html">Device2</a> class.</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_Device2_EnqueueSetEvent_System_IntPtr_" data-uid="C1.Util.DX.DXGI.Device2.EnqueueSetEvent(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.EnqueueSetEvent.html#C1_Util_DX_DXGI_Device2_EnqueueSetEvent_System_IntPtr_">EnqueueSetEvent(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIDevice2::EnqueueSetEvent([In] void* hEvent)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Device2_OfferResources_System_Int32_C1_Util_DX_ComArray_C1_Util_DX_DXGI_Resource__C1_Util_DX_DXGI_OfferResourcePriority_" data-uid="C1.Util.DX.DXGI.Device2.OfferResources(System.Int32,C1.Util.DX.ComArray{C1.Util.DX.DXGI.Resource},C1.Util.DX.DXGI.OfferResourcePriority)">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.OfferResources.html#C1_Util_DX_DXGI_Device2_OfferResources_System_Int32_C1_Util_DX_ComArray_C1_Util_DX_DXGI_Resource__C1_Util_DX_DXGI_OfferResourcePriority_">OfferResources(int, ComArray&lt;Resource&gt;, OfferResourcePriority)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIDevice2::OfferResources([In] unsigned int NumResources,[In, Buffer] const IDXGIResource** ppResources,[In] DXGI_OFFER_RESOURCE_PRIORITY Priority)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Device2_OfferResources_System_Int32_C1_Util_DX_DXGI_Resource___C1_Util_DX_DXGI_OfferResourcePriority_" data-uid="C1.Util.DX.DXGI.Device2.OfferResources(System.Int32,C1.Util.DX.DXGI.Resource[],C1.Util.DX.DXGI.OfferResourcePriority)">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.OfferResources.html#C1_Util_DX_DXGI_Device2_OfferResources_System_Int32_C1_Util_DX_DXGI_Resource___C1_Util_DX_DXGI_OfferResourcePriority_">OfferResources(int, Resource[], OfferResourcePriority)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIDevice2::OfferResources([In] unsigned int NumResources,[In, Buffer] const IDXGIResource** ppResources,[In] DXGI_OFFER_RESOURCE_PRIORITY Priority)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Device2_ReclaimResources_System_Int32_C1_Util_DX_ComArray_C1_Util_DX_DXGI_Resource__C1_Util_DX_Bool___" data-uid="C1.Util.DX.DXGI.Device2.ReclaimResources(System.Int32,C1.Util.DX.ComArray{C1.Util.DX.DXGI.Resource},C1.Util.DX.Bool[])">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.ReclaimResources.html#C1_Util_DX_DXGI_Device2_ReclaimResources_System_Int32_C1_Util_DX_ComArray_C1_Util_DX_DXGI_Resource__C1_Util_DX_Bool___">ReclaimResources(int, ComArray&lt;Resource&gt;, Bool[])</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIDevice2::ReclaimResources([In] unsigned int NumResources,[In, Buffer] const IDXGIResource** ppResources,[Out, Buffer, Optional] BOOL* pDiscarded)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Device2_ReclaimResources_System_Int32_C1_Util_DX_DXGI_Resource___C1_Util_DX_Bool___" data-uid="C1.Util.DX.DXGI.Device2.ReclaimResources(System.Int32,C1.Util.DX.DXGI.Resource[],C1.Util.DX.Bool[])">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.ReclaimResources.html#C1_Util_DX_DXGI_Device2_ReclaimResources_System_Int32_C1_Util_DX_DXGI_Resource___C1_Util_DX_Bool___">ReclaimResources(int, Resource[], Bool[])</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIDevice2::ReclaimResources([In] unsigned int NumResources,[In, Buffer] const IDXGIResource** ppResources,[Out, Buffer, Optional] BOOL* pDiscarded)</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_Device2_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_Device2" data-uid="C1.Util.DX.DXGI.Device2.op_Explicit(System.IntPtr)~C1.Util.DX.DXGI.Device2">
          <a class="xref" href="C1.Util.DX.DXGI.Device2.op_Explicit.html#C1_Util_DX_DXGI_Device2_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_Device2">explicit operator Device2(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.Device2.html">Device2</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
