Graphics Reference
In-Depth Information
The starting mip-map level is specified by the MostDetailedMip parameter, and the
number of levels that follow it is specified in the MipLevels parameter. A few possibilities
for mip-map level selection are graphically demonstrated in Figure 2.28.
For array-based 1D texture resources, a shader resource view references a subset
of mip-map levels in each texture slice in the same way as mentioned above for non-
array resources, but it can also select a subrange of texture slices to read those mip-map
levels from. The range selections are made with the D3D11_TEX1D_ARRAY_SRV structure
in the D3D11_SHADER_RES0URCE_VIEW_DESC structure. These parameters are shown in
Listing 2.21.
struct D3D11_TEX1D_ARRAY_SRV {
UINT MostDetailedMip;
UINT MipLevels;
UINT FirstArraySlice;
UINT ArraySize;
}
Listing 2.21. The members of the D3D11_TEX1D_ARRAY_SRV structure.
Figure 2.29. Selecting subresources in a 1D texture array resource.
Search WWH ::




Custom Search