# C1.Util.DX.DXGI.DeviceChild

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_DeviceChild" data-uid="C1.Util.DX.DXGI.DeviceChild" class="text-break">DeviceChild Class
</h1>
  <div class="markdown level0 summary"><p>IDXGIDeviceSubObject</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"><span class="xref">DeviceChild</span></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.KeyedMutex.html">KeyedMutex</a></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.Resource.html">Resource</a></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.Surface.html">Surface</a></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.DXGI.SwapChain.html">SwapChain</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.4.8.dll</h6>
  <h5 id="C1_Util_DX_DXGI_DeviceChild_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;3d3e0379-f9de-4d58-bb6c-18d62992f1a6&quot;)]
public class DeviceChild : DXGIObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;3d3e0379-f9de-4d58-bb6c-18d62992f1a6&quot;)&gt;
Public Class DeviceChild
    Inherits DXGIObject
    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_DeviceChild__ctor_System_IntPtr_" data-uid="C1.Util.DX.DXGI.DeviceChild.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.DXGI.DeviceChild.-ctor.html#C1_Util_DX_DXGI_DeviceChild__ctor_System_IntPtr_">DeviceChild(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.DXGI.DeviceChild.html">DeviceChild</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_DeviceChild_DebugName" data-uid="C1.Util.DX.DXGI.DeviceChild.DebugName">
          <a class="xref" href="C1.Util.DX.DXGI.DeviceChild.DebugName.html#C1_Util_DX_DXGI_DeviceChild_DebugName">DebugName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the debug-name for this object.</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_DeviceChild_GetDevice_System_Guid_" data-uid="C1.Util.DX.DXGI.DeviceChild.GetDevice(System.Guid)">
          <a class="xref" href="C1.Util.DX.DXGI.DeviceChild.GetDevice.html#C1_Util_DX_DXGI_DeviceChild_GetDevice_System_Guid_">GetDevice(Guid)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT IDXGIDeviceSubObject::GetDevice([In] const GUID&amp; riid,[Out] void** ppDevice)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_DeviceChild_GetDevice__1" data-uid="C1.Util.DX.DXGI.DeviceChild.GetDevice``1">
          <a class="xref" href="C1.Util.DX.DXGI.DeviceChild.GetDevice.html#C1_Util_DX_DXGI_DeviceChild_GetDevice__1">GetDevice&lt;T&gt;()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the device.</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_DeviceChild_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_DeviceChild" data-uid="C1.Util.DX.DXGI.DeviceChild.op_Explicit(System.IntPtr)~C1.Util.DX.DXGI.DeviceChild">
          <a class="xref" href="C1.Util.DX.DXGI.DeviceChild.op_Explicit.html#C1_Util_DX_DXGI_DeviceChild_op_Explicit_System_IntPtr__C1_Util_DX_DXGI_DeviceChild">explicit operator DeviceChild(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.DeviceChild.html">DeviceChild</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
