# C1.Util.DX.Direct3D11.ResourceRegion.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_ResourceRegion__ctor_" data-uid="C1.Util.DX.Direct3D11.ResourceRegion.#ctor*">ResourceRegion Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_ResourceRegion__ctor_" data-uid="C1.Util.DX.Direct3D11.ResourceRegion.#ctor*"></a>
<h4 id="C1_Util_DX_Direct3D11_ResourceRegion__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Util.DX.Direct3D11.ResourceRegion.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">ResourceRegion(int, int, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initialize a new instance of <a class="xref" href="C1.Util.DX.Direct3D11.ResourceRegion.html">ResourceRegion</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ResourceRegion(int left, int top, int front, int right, int bottom, int back)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(left As Integer, top As Integer, front As Integer, right As Integer, bottom As Integer, back 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">left</span></td>
      <td><p>Left coordinates (inclusive)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>Top coordinates (inclusive)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">front</span></td>
      <td><p>Front coordinates (inclusive)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">right</span></td>
      <td><p>Right coordinates (exclusive)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bottom</span></td>
      <td><p>Bottom coordinates (exclusive)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">back</span></td>
      <td><p>Back coordinates (exclusive)</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_Direct3D11_ResourceRegion__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><ul>
    <li>For a Width of 1 pixels, (right - left) = 1. If left = 0, right = Width. </li>
    <li>For a Height of 1 pixels, (bottom - top) = 1. If top = 0, bottom = Height.</li>
    <li>For a Depth of 1 pixels, (back - front) = 1. If front = 0, back = Depth. </li>
</ul>
</div>
</div>
