Graphics Reference
In-Depth Information
As seen in Listing 2.21, the MostDetailedMip and MipLevels parameters are the
same as they were for non-array resources. However, the texture slices are selected with
the additional FirstArraySlice and the ArraySize parameters, which specify the start-
ing slice and how many subsequent slices will be included in the view. This is depicted
graphically in Figure 2.29.
TexturelD unordered access view. The unordered access view for non-array ID texture
resources specifies a single mip-map level. In practice, the restriction to a single mip-map
level is not really a hindrance, since it is possible to create additional unordered access
views to access other mip-map levels. This solution only partially overcomes the issue,
since there are a limited number of UAV slots, but an increased number of mip-maps could
be processed in multiple passes to overcome this limit. The desired mip-map level is speci-
fied in the D3D11_TEX1D_UAV structure within the D3D11_UNORDERED_ACCESS_VIEW_DESC
structure.
struct D3D11_TEX1D_UAV {
UINT MipSlice;
}
Listing 2.22. The members of the D3D11_TEX1D_UAV structure.
Figure 2.30. Various subresource selections for use in unordered access views.
Search WWH ::




Custom Search