# C1.Util.DX.Direct2D.ComputeTransform.CalculateThreadgroups

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_ComputeTransform_CalculateThreadgroups_" data-uid="C1.Util.DX.Direct2D.ComputeTransform.CalculateThreadgroups*">CalculateThreadgroups Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_ComputeTransform_CalculateThreadgroups_" data-uid="C1.Util.DX.Direct2D.ComputeTransform.CalculateThreadgroups*"></a>
<h4 id="C1_Util_DX_Direct2D_ComputeTransform_CalculateThreadgroups_C1_Util_DX_RectL_System_Int32__System_Int32__System_Int32__" data-uid="C1.Util.DX.Direct2D.ComputeTransform.CalculateThreadgroups(C1.Util.DX.RectL,System.Int32@,System.Int32@,System.Int32@)">CalculateThreadgroups(RectL, out int, out int, out int)</h4>
<div class="markdown level1 summary"><p>Allows a compute-shader–based transform to select the number of thread groups to execute based on the number of output pixels it needs to fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void CalculateThreadgroups(RectL outputRect, out int dimensionX, out int dimensionY, out int dimensionZ)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub CalculateThreadgroups(outputRect As RectL, ByRef dimensionX As Integer, ByRef dimensionY As Integer, ByRef dimensionZ 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.RectL.html">RectL</a></td>
      <td><span class="parametername">outputRect</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">dimensionX</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">dimensionY</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">dimensionZ</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
