Graphics Reference
In-Depth Information
Struct D3D11_TEX2D_ARRAY_RTV {
UINT MipSlice;
UINT FirstArraySlice;
UINT ArraySize;
}
Listing 2.38. The members of the D3D11_TEX2D_ARRAY_RTV structure.
The multisampled 2D texture resource's primary responsibility is to receive the re-
sults of rendering operations as render targets. The render target views are the primary
means of attaching these resources to the pipeline. The subresource selection structures are
shown in Listing 2.39 for both the non-array and array versions of the resource.
struct D3D11_TEX2DMS_RTV {
UINT UnusedField_NothingToDefine;
}
Struct D3D11_TEX2DMS_ARRAY_RTV {
UINT FirstArraySlice;
UINT ArraySize;
}
Listing 2.39. The members of the D3D11_TEX2DMS_RTV and D3D11_TEX2DMS_ARRAY_RTV
structures.
As you can see from Listing 2.39, there are no subresource selections possible for
standard 2D multisampled texture resources. However, a 2D multisampled texture array
allows the option of selecting a subrange of array elements. These selections are shown
graphically in Figure 2.40.
Texture2D depth stencil view. The depth stencil view provides the same options that the
render target views provide, making matching the render target and depth stencil target
views relatively simple. The individual structures used in creating the resource views are
provided in Listing 2.40 for reference.
Figure 2.40. Various render target view subresource selections for a 2D multisampled texture array resource.
Search WWH ::




Custom Search