# C1.Util.DX.Direct3D11.Device2.GetResourceTiling

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_Device2_GetResourceTiling_" data-uid="C1.Util.DX.Direct3D11.Device2.GetResourceTiling*">GetResourceTiling Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_Device2_GetResourceTiling_" data-uid="C1.Util.DX.Direct3D11.Device2.GetResourceTiling*"></a>
<h4 id="C1_Util_DX_Direct3D11_Device2_GetResourceTiling_C1_Util_DX_Direct3D11_Resource_System_Int32__C1_Util_DX_Direct3D11_PackedMipDescription__C1_Util_DX_Direct3D11_TileShape__System_Int32__System_Int32_C1_Util_DX_Direct3D11_SubResourceTiling___" data-uid="C1.Util.DX.Direct3D11.Device2.GetResourceTiling(C1.Util.DX.Direct3D11.Resource,System.Int32@,C1.Util.DX.Direct3D11.PackedMipDescription@,C1.Util.DX.Direct3D11.TileShape@,System.Int32@,System.Int32,C1.Util.DX.Direct3D11.SubResourceTiling[])">GetResourceTiling(Resource, out int, out PackedMipDescription, out TileShape, ref int, int, SubResourceTiling[])</h4>
<div class="markdown level1 summary"><p>void ID3D11Device2::GetResourceTiling([In] ID3D11Resource* pTiledResource,[Out, Optional] unsigned int* pNumTilesForEntireResource,[Out, Optional] D3D11_PACKED_MIP_DESC* pPackedMipDesc,[Out, Optional] D3D11_TILE_SHAPE* pStandardTileShapeForNonPackedMips,[InOut] unsigned int* pNumSubresourceTilings,[In] unsigned int FirstSubresourceTilingToGet,[Out, Buffer] D3D11_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetResourceTiling(Resource tiledResourceRef, out int numTilesForEntireResourceRef, out PackedMipDescription packedMipDescRef, out TileShape standardTileShapeForNonPackedMipsRef, ref int numSubresourceTilingsRef, int firstSubresourceTilingToGet, SubResourceTiling[] subresourceTilingsForNonPackedMipsRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetResourceTiling(tiledResourceRef As Resource, ByRef numTilesForEntireResourceRef As Integer, ByRef packedMipDescRef As PackedMipDescription, ByRef standardTileShapeForNonPackedMipsRef As TileShape, ByRef numSubresourceTilingsRef As Integer, firstSubresourceTilingToGet As Integer, subresourceTilingsForNonPackedMipsRef As SubResourceTiling())</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.Resource.html">Resource</a></td>
      <td><span class="parametername">tiledResourceRef</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">numTilesForEntireResourceRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.PackedMipDescription.html">PackedMipDescription</a></td>
      <td><span class="parametername">packedMipDescRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.TileShape.html">TileShape</a></td>
      <td><span class="parametername">standardTileShapeForNonPackedMipsRef</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">numSubresourceTilingsRef</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">firstSubresourceTilingToGet</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.SubResourceTiling.html">SubResourceTiling</a>[]</td>
      <td><span class="parametername">subresourceTilingsForNonPackedMipsRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
