# C1.Util.DX.Direct3D11.Device1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct3D11_Device1" data-uid="C1.Util.DX.Direct3D11.Device1" class="text-break">Device1 Class
</h1>
  <div class="markdown level0 summary"><p>ID3D11Device1</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"><span class="xref">Device1</span></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.Direct3D11.Device2.html">Device2</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.Direct3D11.html">C1.Util.DX.Direct3D11</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct3D11_Device1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;a04bfb29-08ef-43d6-a49c-a9bdbdcbe686&quot;)]
public class Device1 : Device, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;a04bfb29-08ef-43d6-a49c-a9bdbdcbe686&quot;)&gt;
Public Class Device1
    Inherits Device
    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_Device1__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct3D11.Device1.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.-ctor.html#C1_Util_DX_Direct3D11_Device1__ctor_System_IntPtr_">Device1(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct3D11.Device1.html">Device1</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_Device1_ImmediateContext1" data-uid="C1.Util.DX.Direct3D11.Device1.ImmediateContext1">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.ImmediateContext1.html#C1_Util_DX_Direct3D11_Device1_ImmediateContext1">ImmediateContext1</a>
        </td>
        <td class="markdown level1 summary"><p>GetImmediateContext1</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_Device1_CreateBlendState1_C1_Util_DX_Direct3D11_BlendStateDescription1__" data-uid="C1.Util.DX.Direct3D11.Device1.CreateBlendState1(C1.Util.DX.Direct3D11.BlendStateDescription1@)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.CreateBlendState1.html#C1_Util_DX_Direct3D11_Device1_CreateBlendState1_C1_Util_DX_Direct3D11_BlendStateDescription1__">CreateBlendState1(ref BlendStateDescription1)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device1::CreateBlendState1([In] const D3D11_BLEND_DESC1* pBlendStateDesc,[Out, Fast] ID3D11BlendState1** ppBlendState)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_CreateDeferredContext1_System_Int32_" data-uid="C1.Util.DX.Direct3D11.Device1.CreateDeferredContext1(System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.CreateDeferredContext1.html#C1_Util_DX_Direct3D11_Device1_CreateDeferredContext1_System_Int32_">CreateDeferredContext1(int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device1::CreateDeferredContext1([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext1** ppDeferredContext)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_CreateDeviceContextState_C1_Util_DX_Direct3D11_CreateDeviceContextStateFlags_C1_Util_DX_Direct3D11_FeatureLevel___System_Int32_System_Int32_System_Guid_C1_Util_DX_Direct3D11_FeatureLevel__" data-uid="C1.Util.DX.Direct3D11.Device1.CreateDeviceContextState(C1.Util.DX.Direct3D11.CreateDeviceContextStateFlags,C1.Util.DX.Direct3D11.FeatureLevel[],System.Int32,System.Int32,System.Guid,C1.Util.DX.Direct3D11.FeatureLevel@)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.CreateDeviceContextState.html#C1_Util_DX_Direct3D11_Device1_CreateDeviceContextState_C1_Util_DX_Direct3D11_CreateDeviceContextStateFlags_C1_Util_DX_Direct3D11_FeatureLevel___System_Int32_System_Int32_System_Guid_C1_Util_DX_Direct3D11_FeatureLevel__">CreateDeviceContextState(CreateDeviceContextStateFlags, FeatureLevel[], int, int, Guid, out FeatureLevel)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device1::CreateDeviceContextState([In] D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG Flags,[In, Buffer] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[In] const GUID&amp; EmulatedInterface,[Out, Optional] D3D_FEATURE_LEVEL* pChosenFeatureLevel,[Out, Fast] ID3DDeviceContextState** ppContextState)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_CreateDeviceContextState__1_C1_Util_DX_Direct3D11_CreateDeviceContextStateFlags_C1_Util_DX_Direct3D11_FeatureLevel___C1_Util_DX_Direct3D11_FeatureLevel__" data-uid="C1.Util.DX.Direct3D11.Device1.CreateDeviceContextState``1(C1.Util.DX.Direct3D11.CreateDeviceContextStateFlags,C1.Util.DX.Direct3D11.FeatureLevel[],C1.Util.DX.Direct3D11.FeatureLevel@)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.CreateDeviceContextState.html#C1_Util_DX_Direct3D11_Device1_CreateDeviceContextState__1_C1_Util_DX_Direct3D11_CreateDeviceContextStateFlags_C1_Util_DX_Direct3D11_FeatureLevel___C1_Util_DX_Direct3D11_FeatureLevel__">CreateDeviceContextState&lt;T&gt;(CreateDeviceContextStateFlags, FeatureLevel[], out FeatureLevel)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a context state object that holds all Microsoft Direct3D state and some Direct3D behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_CreateRasterizerState1_C1_Util_DX_Direct3D11_RasterizerStateDescription1__" data-uid="C1.Util.DX.Direct3D11.Device1.CreateRasterizerState1(C1.Util.DX.Direct3D11.RasterizerStateDescription1@)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.CreateRasterizerState1.html#C1_Util_DX_Direct3D11_Device1_CreateRasterizerState1_C1_Util_DX_Direct3D11_RasterizerStateDescription1__">CreateRasterizerState1(ref RasterizerStateDescription1)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device1::CreateRasterizerState1([In] const D3D11_RASTERIZER_DESC1* pRasterizerDesc,[Out, Fast] ID3D11RasterizerState1** ppRasterizerState)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_Dispose_System_Boolean_" data-uid="C1.Util.DX.Direct3D11.Device1.Dispose(System.Boolean)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.Dispose.html#C1_Util_DX_Direct3D11_Device1_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_Device1_GetImmediateContext1_C1_Util_DX_Direct3D11_DeviceContext1__" data-uid="C1.Util.DX.Direct3D11.Device1.GetImmediateContext1(C1.Util.DX.Direct3D11.DeviceContext1@)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.GetImmediateContext1.html#C1_Util_DX_Direct3D11_Device1_GetImmediateContext1_C1_Util_DX_Direct3D11_DeviceContext1__">GetImmediateContext1(out DeviceContext1)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID3D11Device1::GetImmediateContext1([Out] ID3D11DeviceContext1** ppImmediateContext)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_OpenSharedResource1_System_IntPtr_System_Guid_" data-uid="C1.Util.DX.Direct3D11.Device1.OpenSharedResource1(System.IntPtr,System.Guid)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.OpenSharedResource1.html#C1_Util_DX_Direct3D11_Device1_OpenSharedResource1_System_IntPtr_System_Guid_">OpenSharedResource1(IntPtr, Guid)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device1::OpenSharedResource1([In] void* hResource,[In] const GUID&amp; returnedInterface,[Out] void** ppResource)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_OpenSharedResource1__1_System_IntPtr_" data-uid="C1.Util.DX.Direct3D11.Device1.OpenSharedResource1``1(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.OpenSharedResource1.html#C1_Util_DX_Direct3D11_Device1_OpenSharedResource1__1_System_IntPtr_">OpenSharedResource1&lt;T&gt;(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Gives a device access to a shared resource that is referenced by name and that was created on a different device. You must have previously created the resource as shared and specified that it uses NT handles (that is, you set the <a class="xref" href="C1.Util.DX.Direct3D11.ResourceMiscFlags.html#C1_Util_DX_Direct3D11_ResourceMiscFlags_SharedNthandle">SharedNthandle</a> flag).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_OpenSharedResource1__1_System_String_C1_Util_DX_DXGI_SharedResourceFlags_" data-uid="C1.Util.DX.Direct3D11.Device1.OpenSharedResource1``1(System.String,C1.Util.DX.DXGI.SharedResourceFlags)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.OpenSharedResource1.html#C1_Util_DX_Direct3D11_Device1_OpenSharedResource1__1_System_String_C1_Util_DX_DXGI_SharedResourceFlags_">OpenSharedResource1&lt;T&gt;(string, SharedResourceFlags)</a>
        </td>
        <td class="markdown level1 summary"><p>Gives a device access to a shared resource that is referenced by name and that was created on a different device. You must have previously created the resource as shared and specified that it uses NT handles (that is, you set the <a class="xref" href="C1.Util.DX.Direct3D11.ResourceMiscFlags.html#C1_Util_DX_Direct3D11_ResourceMiscFlags_SharedNthandle">SharedNthandle</a> flag).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct3D11_Device1_OpenSharedResourceByName_System_String_C1_Util_DX_DXGI_SharedResourceFlags_System_Guid_" data-uid="C1.Util.DX.Direct3D11.Device1.OpenSharedResourceByName(System.String,C1.Util.DX.DXGI.SharedResourceFlags,System.Guid)">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.OpenSharedResourceByName.html#C1_Util_DX_Direct3D11_Device1_OpenSharedResourceByName_System_String_C1_Util_DX_DXGI_SharedResourceFlags_System_Guid_">OpenSharedResourceByName(string, SharedResourceFlags, Guid)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID3D11Device1::OpenSharedResourceByName([In] const wchar_t* lpName,[In] DXGI_SHARED_RESOURCE_FLAGS dwDesiredAccess,[In] const GUID&amp; returnedInterface,[Out] void** ppResource)</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_Device1_op_Explicit_System_IntPtr__C1_Util_DX_Direct3D11_Device1" data-uid="C1.Util.DX.Direct3D11.Device1.op_Explicit(System.IntPtr)~C1.Util.DX.Direct3D11.Device1">
          <a class="xref" href="C1.Util.DX.Direct3D11.Device1.op_Explicit.html#C1_Util_DX_Direct3D11_Device1_op_Explicit_System_IntPtr__C1_Util_DX_Direct3D11_Device1">explicit operator Device1(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.Direct3D11.Device1.html">Device1</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
