# C1.Util.DX.DXGI.Factory1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_Factory1" data-uid="C1.Util.DX.DXGI.Factory1" class="text-break">Factory1 Class
</h1>
  <div class="markdown level0 summary"><p>IDXGIFactory1</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.Factory.html">Factory</a></div>
    <div class="level6"><span class="xref">Factory1</span></div>
      <div class="level7"><a class="xref" href="C1.Util.DX.DXGI.Factory2.html">Factory2</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.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_DXGI_Factory1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;770aae78-f26f-4dba-a829-253c83d1b387&quot;)]
public class Factory1 : Factory, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;770aae78-f26f-4dba-a829-253c83d1b387&quot;)&gt;
Public Class Factory1
    Inherits Factory
    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_Factory1__ctor_System_IntPtr_" data-uid="C1.Util.DX.DXGI.Factory1.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.-ctor.html#C1_Util_DX_DXGI_Factory1__ctor_System_IntPtr_">Factory1(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.DXGI.Factory1.html">Factory1</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_Factory1_Adapters1" data-uid="C1.Util.DX.DXGI.Factory1.Adapters1">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.Adapters1.html#C1_Util_DX_DXGI_Factory1_Adapters1">Adapters1</a>
        </td>
        <td class="markdown level1 summary"><p>Return an array of <a class="xref" href="C1.Util.DX.DXGI.Adapter1.html">Adapter1</a> available from this factory.</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_Factory1_Create" data-uid="C1.Util.DX.DXGI.Factory1.Create">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.Create.html#C1_Util_DX_DXGI_Factory1_Create">Create()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.DXGI.Factory1.html">Factory1</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Factory1_GetAdapter1_System_Int32_" data-uid="C1.Util.DX.DXGI.Factory1.GetAdapter1(System.Int32)">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.GetAdapter1.html#C1_Util_DX_DXGI_Factory1_GetAdapter1_System_Int32_">GetAdapter1(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets both adapters (video cards) with or without outputs.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Factory1_GetAdapter1_System_Int32_C1_Util_DX_DXGI_Adapter1__" data-uid="C1.Util.DX.DXGI.Factory1.GetAdapter1(System.Int32,C1.Util.DX.DXGI.Adapter1@)">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.GetAdapter1.html#C1_Util_DX_DXGI_Factory1_GetAdapter1_System_Int32_C1_Util_DX_DXGI_Adapter1__">GetAdapter1(int, out Adapter1)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIFactory1::EnumAdapters1([In] unsigned int Adapter,[Out] IDXGIAdapter1** ppAdapter)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Factory1_GetAdapterCount1" data-uid="C1.Util.DX.DXGI.Factory1.GetAdapterCount1">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.GetAdapterCount1.html#C1_Util_DX_DXGI_Factory1_GetAdapterCount1">GetAdapterCount1()</a>
        </td>
        <td class="markdown level1 summary"><p>Return the number of available adapters from this factory.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Factory1_IsCurrent" data-uid="C1.Util.DX.DXGI.Factory1.IsCurrent">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.IsCurrent.html#C1_Util_DX_DXGI_Factory1_IsCurrent">IsCurrent()</a>
        </td>
        <td class="markdown level1 summary"><p>BOOL IDXGIFactory1::IsCurrent()</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_Factory1_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_Factory1" data-uid="C1.Util.DX.DXGI.Factory1.op_Explicit(System.IntPtr)~C1.Util.DX.DXGI.Factory1">
          <a class="xref" href="C1.Util.DX.DXGI.Factory1.op_Explicit.html#C1_Util_DX_DXGI_Factory1_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_Factory1">explicit operator Factory1(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.DXGI.Factory1.html">Factory1</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
