# C1.Util.DX.Direct3D11.DeviceContext.ResolveSubresource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_DeviceContext_ResolveSubresource_" data-uid="C1.Util.DX.Direct3D11.DeviceContext.ResolveSubresource*">ResolveSubresource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_DeviceContext_ResolveSubresource_" data-uid="C1.Util.DX.Direct3D11.DeviceContext.ResolveSubresource*"></a>
<h4 id="C1_Util_DX_Direct3D11_DeviceContext_ResolveSubresource_C1_Util_DX_Direct3D11_Resource_System_Int32_C1_Util_DX_Direct3D11_Resource_System_Int32_C1_Util_DX_DXGI_Format_" data-uid="C1.Util.DX.Direct3D11.DeviceContext.ResolveSubresource(C1.Util.DX.Direct3D11.Resource,System.Int32,C1.Util.DX.Direct3D11.Resource,System.Int32,C1.Util.DX.DXGI.Format)">ResolveSubresource(Resource, int, Resource, int, Format)</h4>
<div class="markdown level1 summary"><p>Copy a multisampled resource into a non-multisampled resource.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ResolveSubresource(Resource source, int sourceSubresource, Resource destination, int destinationSubresource, Format format)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ResolveSubresource(source As Resource, sourceSubresource As Integer, destination As Resource, destinationSubresource As Integer, format As Format)</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.Resource.html">Resource</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Source resource. Must be multisampled.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">sourceSubresource</span></td>
      <td><blockquote>
<p>The source subresource of the source resource.</p>
</blockquote>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Resource.html">Resource</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>Destination resource. Must be a created with the <a class="xref" href="C1.Util.DX.Direct3D11.ResourceUsage.html#C1_Util_DX_Direct3D11_ResourceUsage_Default">Default</a> flag and be single-sampled. See <a class="xref" href="C1.Util.DX.Direct3D11.Resource.html">Resource</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">destinationSubresource</span></td>
      <td><p>A zero-based index, that identifies the destination subresource. Use {{D3D11CalcSubresource}} to calculate the index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>A <a class="xref" href="C1.Util.DX.DXGI.Format.html">Format</a> that indicates how the multisampled resource will be resolved to a single-sampled resource.  See remarks.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
