# C1.Util.DX.Direct3D9.Device

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct3D9_Device" data-uid="C1.Util.DX.Direct3D9.Device" class="text-break">Device Class
</h1>
  <div class="markdown level0 summary"><p>IDirect3DDevice9</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"><span class="xref">Device</span></div>
      <div class="level5"><a class="xref" href="C1.Util.DX.Direct3D9.DeviceEx.html">DeviceEx</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.Direct3D9.html">C1.Util.DX.Direct3D9</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct3D9_Device_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;D0223B96-BF7A-43fd-92BD-A43B0D82B9EB&quot;)]
public class Device : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;D0223B96-BF7A-43fd-92BD-A43B0D82B9EB&quot;)&gt;
Public Class Device
    Inherits ComObject
    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_Direct3D9_Device__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct3D9.Device.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct3D9.Device.-ctor.html#C1_Util_DX_Direct3D9_Device__ctor_System_IntPtr_">Device(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct3D9.Device.html">Device</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_Direct3D9_Device_CreateTexture_System_Int32_System_Int32_System_Int32_System_Int32_C1_Util_DX_Direct3D9_Format_C1_Util_DX_Direct3D9_Pool_System_IntPtr_" data-uid="C1.Util.DX.Direct3D9.Device.CreateTexture(System.Int32,System.Int32,System.Int32,System.Int32,C1.Util.DX.Direct3D9.Format,C1.Util.DX.Direct3D9.Pool,System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct3D9.Device.CreateTexture.html#C1_Util_DX_Direct3D9_Device_CreateTexture_System_Int32_System_Int32_System_Int32_System_Int32_C1_Util_DX_Direct3D9_Format_C1_Util_DX_Direct3D9_Pool_System_IntPtr_">CreateTexture(int, int, int, int, Format, Pool, IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDirect3DDevice9::CreateTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DTexture9** ppTexture,[In] void** pSharedHandle)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D9_Device_GetDirect3D" data-uid="C1.Util.DX.Direct3D9.Device.GetDirect3D">
          <a class="xref" href="C1.Util.DX.Direct3D9.Device.GetDirect3D.html#C1_Util_DX_Direct3D9_Device_GetDirect3D">GetDirect3D()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDirect3DDevice9::GetDirect3D([Out] IDirect3D9** ppD3D9)</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_Direct3D9_Device_op_Explicit_System_IntPtr__C1_Util_DX_Direct3D9_Device" data-uid="C1.Util.DX.Direct3D9.Device.op_Explicit(System.IntPtr)~C1.Util.DX.Direct3D9.Device">
          <a class="xref" href="C1.Util.DX.Direct3D9.Device.op_Explicit.html#C1_Util_DX_Direct3D9_Device_op_Explicit_System_IntPtr__C1_Util_DX_Direct3D9_Device">explicit operator Device(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.Direct3D9.Device.html">Device</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
