# C1.Util.DX.Direct3D11.Texture2D.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_Texture2D_Create_" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_Texture2D_Create_" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create*"></a>
<h4 id="C1_Util_DX_Direct3D11_Texture2D_Create_C1_Util_DX_Direct3D11_Device_C1_Util_DX_Direct3D11_Texture2DDescription__" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create(C1.Util.DX.Direct3D11.Device,C1.Util.DX.Direct3D11.Texture2DDescription@)">Create(Device, ref Texture2DDescription)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct3D11.Texture2D.html">Texture2D</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Texture2D Create(Device device, ref Texture2DDescription description)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(device As Device, ByRef description As Texture2DDescription) As Texture2D</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.Device.html">Device</a></td>
      <td><span class="parametername">device</span></td>
      <td><p>The device with which to associate the texture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Texture2DDescription.html">Texture2DDescription</a></td>
      <td><span class="parametername">description</span></td>
      <td><p>The description of the texture.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Texture2D.html">Texture2D</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_Texture2D_Create_" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create*"></a>
<h4 id="C1_Util_DX_Direct3D11_Texture2D_Create_C1_Util_DX_Direct3D11_Device_C1_Util_DX_Direct3D11_Texture2DDescription_C1_Util_DX_DataRectangle___" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create(C1.Util.DX.Direct3D11.Device,C1.Util.DX.Direct3D11.Texture2DDescription,C1.Util.DX.DataRectangle[])">Create(Device, Texture2DDescription, params DataRectangle[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct3D11.Texture2D.html">Texture2D</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Texture2D Create(Device device, Texture2DDescription description, params DataRectangle[] data)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(device As Device, description As Texture2DDescription, ParamArray data As DataRectangle()) As Texture2D</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.Device.html">Device</a></td>
      <td><span class="parametername">device</span></td>
      <td><p>The device with which to associate the texture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Texture2DDescription.html">Texture2DDescription</a></td>
      <td><span class="parametername">description</span></td>
      <td><p>The description of the texture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DataRectangle.html">DataRectangle</a>[]</td>
      <td><span class="parametername">data</span></td>
      <td><p>An array of initial texture data for each subresource.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Texture2D.html">Texture2D</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct3D11_Texture2D_Create_" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create*"></a>
<h4 id="C1_Util_DX_Direct3D11_Texture2D_Create_C1_Util_DX_Direct3D11_Device_C1_Util_DX_Direct3D11_Texture2DDescription_C1_Util_DX_DataBox___" data-uid="C1.Util.DX.Direct3D11.Texture2D.Create(C1.Util.DX.Direct3D11.Device,C1.Util.DX.Direct3D11.Texture2DDescription,C1.Util.DX.DataBox[])">Create(Device, Texture2DDescription, DataBox[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct3D11.Texture2D.html">Texture2D</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Texture2D Create(Device device, Texture2DDescription description, DataBox[] data)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(device As Device, description As Texture2DDescription, data As DataBox()) As Texture2D</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.Device.html">Device</a></td>
      <td><span class="parametername">device</span></td>
      <td><p>The device with which to associate the texture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Texture2DDescription.html">Texture2DDescription</a></td>
      <td><span class="parametername">description</span></td>
      <td><p>The description of the texture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DataBox.html">DataBox</a>[]</td>
      <td><span class="parametername">data</span></td>
      <td><p>An array of initial texture data for each subresource.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.Texture2D.html">Texture2D</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
