# C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*">SetTargets Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(params RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Bind one or more render targets atomically and the depth-stencil buffer to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(params RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(ParamArray renderTargetViews As RenderTargetView())</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.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_RenderTargetView_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.RenderTargetView)">SetTargets(RenderTargetView)</h4>
<div class="markdown level1 summary"><p>Binds a single render target to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(RenderTargetView renderTargetView)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(renderTargetView As RenderTargetView)</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.RenderTargetView.html">RenderTargetView</a></td>
      <td><span class="parametername">renderTargetView</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(DepthStencilView, params RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, params RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, ParamArray renderTargetViews As RenderTargetView())</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_System_Int32_C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,System.Int32,C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(DepthStencilView, int, RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, int renderTargetCount, RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, renderTargetCount As Integer, renderTargetViews As RenderTargetView())</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</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">renderTargetCount</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_C1_Util_DX_Direct3D11_RenderTargetView_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,C1.Util.DX.Direct3D11.RenderTargetView)">SetTargets(DepthStencilView, RenderTargetView)</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer and a single render target to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, renderTargetView As RenderTargetView)</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a></td>
      <td><span class="parametername">renderTargetView</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_C1_Util_DX_ComArray_C1_Util_DX_Direct3D11_RenderTargetView__" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,C1.Util.DX.ComArray{C1.Util.DX.Direct3D11.RenderTargetView})">SetTargets(DepthStencilView, ComArray&lt;RenderTargetView&gt;)</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, ComArray&lt;RenderTargetView&gt; renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, renderTargetViews As ComArray(Of RenderTargetView))</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.ComArray-1.html">ComArray</a>&lt;<a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>&gt;</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_ComArray_C1_Util_DX_Direct3D11_RenderTargetView__" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.ComArray{C1.Util.DX.Direct3D11.RenderTargetView})">SetTargets(ComArray&lt;RenderTargetView&gt;)</h4>
<div class="markdown level1 summary"><p>Binds a set of render targets to the output-merger stage and clear the depth stencil view.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(ComArray&lt;RenderTargetView&gt; renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(renderTargetViews As ComArray(Of RenderTargetView))</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.ComArray-1.html">ComArray</a>&lt;<a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>&gt;</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_RenderTargetView_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.RenderTargetView,System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[])">SetTargets(RenderTargetView, int, UnorderedAccessView[])</h4>
<div class="markdown level1 summary"><p>Binds a set of unordered access views and a single render target to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(renderTargetView As RenderTargetView, startSlot As Integer, unorderedAccessViews As UnorderedAccessView())</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.RenderTargetView.html">RenderTargetView</a></td>
      <td><span class="parametername">renderTargetView</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">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[],C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(int, UnorderedAccessView[], params RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Binds a set of unordered access views and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(int startSlot, UnorderedAccessView[] unorderedAccessViews, params RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(startSlot As Integer, unorderedAccessViews As UnorderedAccessView(), ParamArray renderTargetViews As RenderTargetView())</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_C1_Util_DX_Direct3D11_RenderTargetView_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,C1.Util.DX.Direct3D11.RenderTargetView,System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[])">SetTargets(DepthStencilView, RenderTargetView, int, UnorderedAccessView[])</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer, a set of unordered access views, and a single render target to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, renderTargetView As RenderTargetView, startSlot As Integer, unorderedAccessViews As UnorderedAccessView())</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a></td>
      <td><span class="parametername">renderTargetView</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">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[],C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(DepthStencilView, int, UnorderedAccessView[], params RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer, a set of unordered access views, and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, int startSlot, UnorderedAccessView[] unorderedAccessViews, params RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, startSlot As Integer, unorderedAccessViews As UnorderedAccessView(), ParamArray renderTargetViews As RenderTargetView())</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</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">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_RenderTargetView_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___System_Int32___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.RenderTargetView,System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[],System.Int32[])">SetTargets(RenderTargetView, int, UnorderedAccessView[], int[])</h4>
<div class="markdown level1 summary"><p>Binds a set of unordered access views and a single render target to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(renderTargetView As RenderTargetView, startSlot As Integer, unorderedAccessViews As UnorderedAccessView(), initialLengths As Integer())</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.RenderTargetView.html">RenderTargetView</a></td>
      <td><span class="parametername">renderTargetView</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">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</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">initialLengths</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___System_Int32___C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[],System.Int32[],C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(int, UnorderedAccessView[], int[], params RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Binds a set of unordered access views and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths, params RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(startSlot As Integer, unorderedAccessViews As UnorderedAccessView(), initialLengths As Integer(), ParamArray renderTargetViews As RenderTargetView())</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</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">initialLengths</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_C1_Util_DX_Direct3D11_RenderTargetView_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___System_Int32___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,C1.Util.DX.Direct3D11.RenderTargetView,System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[],System.Int32[])">SetTargets(DepthStencilView, RenderTargetView, int, UnorderedAccessView[], int[])</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer, a set of unordered access views, and a single render target to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, RenderTargetView renderTargetView, int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, renderTargetView As RenderTargetView, startSlot As Integer, unorderedAccessViews As UnorderedAccessView(), initialLengths As Integer())</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a></td>
      <td><span class="parametername">renderTargetView</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">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</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">initialLengths</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets*"></a>
<h4 id="C1_Util_DX_Direct3D11_OutputMergerStage_SetTargets_C1_Util_DX_Direct3D11_DepthStencilView_System_Int32_C1_Util_DX_Direct3D11_UnorderedAccessView___System_Int32___C1_Util_DX_Direct3D11_RenderTargetView___" data-uid="C1.Util.DX.Direct3D11.OutputMergerStage.SetTargets(C1.Util.DX.Direct3D11.DepthStencilView,System.Int32,C1.Util.DX.Direct3D11.UnorderedAccessView[],System.Int32[],C1.Util.DX.Direct3D11.RenderTargetView[])">SetTargets(DepthStencilView, int, UnorderedAccessView[], int[], params RenderTargetView[])</h4>
<div class="markdown level1 summary"><p>Binds a depth-stencil buffer, a set of unordered access views, and a set of render targets to the output-merger stage.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetTargets(DepthStencilView depthStencilView, int startSlot, UnorderedAccessView[] unorderedAccessViews, int[] initialLengths, params RenderTargetView[] renderTargetViews)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetTargets(depthStencilView As DepthStencilView, startSlot As Integer, unorderedAccessViews As UnorderedAccessView(), initialLengths As Integer(), ParamArray renderTargetViews As RenderTargetView())</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.DepthStencilView.html">DepthStencilView</a></td>
      <td><span class="parametername">depthStencilView</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">startSlot</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.UnorderedAccessView.html">UnorderedAccessView</a>[]</td>
      <td><span class="parametername">unorderedAccessViews</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">initialLengths</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.RenderTargetView.html">RenderTargetView</a>[]</td>
      <td><span class="parametername">renderTargetViews</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
