# C1.Util.DX.Direct2D.EffectContext.GetMaximumSupportedFeatureLevel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_EffectContext_GetMaximumSupportedFeatureLevel_" data-uid="C1.Util.DX.Direct2D.EffectContext.GetMaximumSupportedFeatureLevel*">GetMaximumSupportedFeatureLevel Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_EffectContext_GetMaximumSupportedFeatureLevel_" data-uid="C1.Util.DX.Direct2D.EffectContext.GetMaximumSupportedFeatureLevel*"></a>
<h4 id="C1_Util_DX_Direct2D_EffectContext_GetMaximumSupportedFeatureLevel_C1_Util_DX_Direct3D11_FeatureLevel___" data-uid="C1.Util.DX.Direct2D.EffectContext.GetMaximumSupportedFeatureLevel(C1.Util.DX.Direct3D11.FeatureLevel[])">GetMaximumSupportedFeatureLevel(FeatureLevel[])</h4>
<div class="markdown level1 summary"><p>Gets the maximum feature level supported by this instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FeatureLevel GetMaximumSupportedFeatureLevel(FeatureLevel[] featureLevels)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetMaximumSupportedFeatureLevel(featureLevels As FeatureLevel()) As FeatureLevel</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.FeatureLevel.html">FeatureLevel</a>[]</td>
      <td><span class="parametername">featureLevels</span></td>
      <td><p>An array of feature levels</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.FeatureLevel.html">FeatureLevel</a></td>
      <td><p>The maximum feature level selected from the array</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_EffectContext_GetMaximumSupportedFeatureLevel_" data-uid="C1.Util.DX.Direct2D.EffectContext.GetMaximumSupportedFeatureLevel*"></a>
<h4 id="C1_Util_DX_Direct2D_EffectContext_GetMaximumSupportedFeatureLevel_C1_Util_DX_Direct3D11_FeatureLevel___System_Int32_" data-uid="C1.Util.DX.Direct2D.EffectContext.GetMaximumSupportedFeatureLevel(C1.Util.DX.Direct3D11.FeatureLevel[],System.Int32)">GetMaximumSupportedFeatureLevel(FeatureLevel[], int)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1EffectContext::GetMaximumSupportedFeatureLevel([In, Buffer] const D3D_FEATURE_LEVEL* featureLevels,[In] unsigned int featureLevelsCount,[Out] D3D_FEATURE_LEVEL* maximumSupportedFeatureLevel)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FeatureLevel GetMaximumSupportedFeatureLevel(FeatureLevel[] featureLevels, int featureLevelsCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetMaximumSupportedFeatureLevel(featureLevels As FeatureLevel(), featureLevelsCount As Integer) As FeatureLevel</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.FeatureLevel.html">FeatureLevel</a>[]</td>
      <td><span class="parametername">featureLevels</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">featureLevelsCount</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.FeatureLevel.html">FeatureLevel</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
