# C1.Util.DX.Direct3D11.Device2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct3D11_Device2" data-uid="C1.Util.DX.Direct3D11.Device2" class="text-break">Device2 Class
</h1>
  <div class="markdown level0 summary"><p>ID3D11Device2</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.Direct3D11.Device.html">Device</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.Direct3D11.Device1.html">Device1</a></div>
    <div class="level6"><span class="xref">Device2</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.Direct3D11.html">C1.Util.DX.Direct3D11</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Direct3D11_Device2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;9d06dffa-d1e5-4d07-83a8-1bb123f2f841&quot;)]
public class Device2 : Device1, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;9d06dffa-d1e5-4d07-83a8-1bb123f2f841&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_Direct3D11_Device2__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct3D11.Device2.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.-ctor.html#C1_Util_DX_Direct3D11_Device2__ctor_System_IntPtr_">Device2(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct3D11.Device2.html">Device2</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_Direct3D11_Device2_ImmediateContext2" data-uid="C1.Util.DX.Direct3D11.Device2.ImmediateContext2">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.ImmediateContext2.html#C1_Util_DX_Direct3D11_Device2_ImmediateContext2">ImmediateContext2</a>
        </td>
        <td class="markdown level1 summary"><p>GetImmediateContext2</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_Direct3D11_Device2_CheckMultisampleQualityLevels1_C1_Util_DX_DXGI_Format_System_Int32_C1_Util_DX_Direct3D11_CheckMultisampleQualityLevelsFlags_" data-uid="C1.Util.DX.Direct3D11.Device2.CheckMultisampleQualityLevels1(C1.Util.DX.DXGI.Format,System.Int32,C1.Util.DX.Direct3D11.CheckMultisampleQualityLevelsFlags)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.CheckMultisampleQualityLevels1.html#C1_Util_DX_Direct3D11_Device2_CheckMultisampleQualityLevels1_C1_Util_DX_DXGI_Format_System_Int32_C1_Util_DX_Direct3D11_CheckMultisampleQualityLevelsFlags_">CheckMultisampleQualityLevels1(Format, int, CheckMultisampleQualityLevelsFlags)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device2::CheckMultisampleQualityLevels1([In] DXGI_FORMAT Format,[In] unsigned int SampleCount,[In] D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG Flags,[Out] unsigned int* pNumQualityLevels)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device2_CreateDeferredContext2_System_Int32_" data-uid="C1.Util.DX.Direct3D11.Device2.CreateDeferredContext2(System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.CreateDeferredContext2.html#C1_Util_DX_Direct3D11_Device2_CreateDeferredContext2_System_Int32_">CreateDeferredContext2(int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device2::CreateDeferredContext2([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext2** ppDeferredContext)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device2_Dispose_System_Boolean_" data-uid="C1.Util.DX.Direct3D11.Device2.Dispose(System.Boolean)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.Dispose.html#C1_Util_DX_Direct3D11_Device2_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device2_GetImmediateContext2_C1_Util_DX_Direct3D11_DeviceContext2__" data-uid="C1.Util.DX.Direct3D11.Device2.GetImmediateContext2(C1.Util.DX.Direct3D11.DeviceContext2@)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.GetImmediateContext2.html#C1_Util_DX_Direct3D11_Device2_GetImmediateContext2_C1_Util_DX_Direct3D11_DeviceContext2__">GetImmediateContext2(out DeviceContext2)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID3D11Device2::GetImmediateContext2([Out] ID3D11DeviceContext2** ppImmediateContext)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device2_GetResourceTiling_C1_Util_DX_Direct3D11_Resource_System_Int32__C1_Util_DX_Direct3D11_PackedMipDescription__C1_Util_DX_Direct3D11_TileShape__System_Int32__System_Int32_C1_Util_DX_Direct3D11_SubResourceTiling___" data-uid="C1.Util.DX.Direct3D11.Device2.GetResourceTiling(C1.Util.DX.Direct3D11.Resource,System.Int32@,C1.Util.DX.Direct3D11.PackedMipDescription@,C1.Util.DX.Direct3D11.TileShape@,System.Int32@,System.Int32,C1.Util.DX.Direct3D11.SubResourceTiling[])">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.GetResourceTiling.html#C1_Util_DX_Direct3D11_Device2_GetResourceTiling_C1_Util_DX_Direct3D11_Resource_System_Int32__C1_Util_DX_Direct3D11_PackedMipDescription__C1_Util_DX_Direct3D11_TileShape__System_Int32__System_Int32_C1_Util_DX_Direct3D11_SubResourceTiling___">GetResourceTiling(Resource, out int, out PackedMipDescription, out TileShape, ref int, int, SubResourceTiling[])</a>
        </td>
        <td class="markdown level1 summary"><p>void ID3D11Device2::GetResourceTiling([In] ID3D11Resource* pTiledResource,[Out, Optional] unsigned int* pNumTilesForEntireResource,[Out, Optional] D3D11_PACKED_MIP_DESC* pPackedMipDesc,[Out, Optional] D3D11_TILE_SHAPE* pStandardTileShapeForNonPackedMips,[InOut] unsigned int* pNumSubresourceTilings,[In] unsigned int FirstSubresourceTilingToGet,[Out, Buffer] D3D11_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips)</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_Direct3D11_Device2_op_Explicit_System_IntPtr__C1_Util_DX_Direct3D11_Device2" data-uid="C1.Util.DX.Direct3D11.Device2.op_Explicit(System.IntPtr)~C1.Util.DX.Direct3D11.Device2">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device2.op_Explicit.html#C1_Util_DX_Direct3D11_Device2_op_Explicit_System_IntPtr__C1_Util_DX_Direct3D11_Device2">explicit operator Device2(nint)</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">nint</a> to <a class="xref" href="C1.Util.DX.Direct3D11.Device2.html">Device2</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
