# C1.Util.DX.Direct3D11.DeviceContext1.HSSetConstantBuffers1

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_DeviceContext1_HSSetConstantBuffers1_" data-uid="C1.Util.DX.Direct3D11.DeviceContext1.HSSetConstantBuffers1*">HSSetConstantBuffers1 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_DeviceContext1_HSSetConstantBuffers1_" data-uid="C1.Util.DX.Direct3D11.DeviceContext1.HSSetConstantBuffers1*"></a>
<h4 id="C1_Util_DX_Direct3D11_DeviceContext1_HSSetConstantBuffers1_System_Int32_System_Int32_C1_Util_DX_Direct3D11_Buffer___System_Int32___System_Int32___" data-uid="C1.Util.DX.Direct3D11.DeviceContext1.HSSetConstantBuffers1(System.Int32,System.Int32,C1.Util.DX.Direct3D11.Buffer[],System.Int32[],System.Int32[])">HSSetConstantBuffers1(int, int, Buffer[], int[], int[])</h4>
<div class="markdown level1 summary"><p>void ID3D11DeviceContext1::HSSetConstantBuffers1([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer, Optional] const ID3D11Buffer** ppConstantBuffers,[In, Buffer, Optional] const unsigned int* pFirstConstant,[In, Buffer, Optional] const unsigned int* pNumConstants)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void HSSetConstantBuffers1(int startSlot, int numBuffers, Buffer[] constantBuffersOut, int[] firstConstantRef, int[] numConstantsRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub HSSetConstantBuffers1(startSlot As Integer, numBuffers As Integer, constantBuffersOut As Buffer(), firstConstantRef As Integer(), numConstantsRef 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="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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numBuffers</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Buffer.html">Buffer</a>[]</td>
      <td><span class="parametername">constantBuffersOut</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">firstConstantRef</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">numConstantsRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_DeviceContext1_HSSetConstantBuffers1_" data-uid="C1.Util.DX.Direct3D11.DeviceContext1.HSSetConstantBuffers1*"></a>
<h4 id="C1_Util_DX_Direct3D11_DeviceContext1_HSSetConstantBuffers1_System_Int32_System_Int32_C1_Util_DX_ComArray_C1_Util_DX_Direct3D11_Buffer__System_Int32___System_Int32___" data-uid="C1.Util.DX.Direct3D11.DeviceContext1.HSSetConstantBuffers1(System.Int32,System.Int32,C1.Util.DX.ComArray{C1.Util.DX.Direct3D11.Buffer},System.Int32[],System.Int32[])">HSSetConstantBuffers1(int, int, ComArray&lt;Buffer&gt;, int[], int[])</h4>
<div class="markdown level1 summary"><p>void ID3D11DeviceContext1::HSSetConstantBuffers1([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer, Optional] const ID3D11Buffer** ppConstantBuffers,[In, Buffer, Optional] const unsigned int* pFirstConstant,[In, Buffer, Optional] const unsigned int* pNumConstants)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void HSSetConstantBuffers1(int startSlot, int numBuffers, ComArray&lt;Buffer&gt; constantBuffersOut, int[] firstConstantRef, int[] numConstantsRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub HSSetConstantBuffers1(startSlot As Integer, numBuffers As Integer, constantBuffersOut As ComArray(Of Buffer), firstConstantRef As Integer(), numConstantsRef 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="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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numBuffers</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.Buffer.html">Buffer</a>&gt;</td>
      <td><span class="parametername">constantBuffersOut</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">firstConstantRef</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">numConstantsRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
