Skip to Content
GPGPU Programming for Games and Science
book

GPGPU Programming for Games and Science

by David H. Eberly
August 2014
Intermediate to advanced
469 pages
16h 30m
English
A K Peters/CRC Press
Content preview from GPGPU Programming for Games and Science
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Graphics Gems V (IBM Version)

Graphics Gems V (IBM Version)

Alan W. Paeth
GPU Pro 6

GPU Pro 6

Wolfgang Engel

Publisher Resources

ISBN: 9781466595354