
198 GPGPU Programming for Games and Science
4.4.6.4 Cubemap Texture Arrays
Listing 4.47 shows the creation of a cubemap texture array, including cre-
ation of views. See Listing 4.23 for information about
SetUsageAccess and List-
ing 4.38 for information about
Create2From and SetAutogenerateMipmaps.
D3D11 TEXTURE2D DESC d e s c ;
desc.Width = input.width;
desc. MipLevels = input. numMipmapLevels;
desc. ArraySize = 6∗ input .numCubes ;
desc.Format = input . format ;
desc . BindFlags = D3D11
BIND SHADER RESOURCE ;
desc . MiscFlags = D3D11
RESOURCE MISC TEXTURECUBE ;
SetUsageAccess (desc , input );
SetAutogenerateMipmaps(desc , input );
output . texture = Creat ...