ptg9898810
Texture Formats . .................................................................................. 270
Proxy Textures. ......................................................................................... 276
Specifying Texture Data . ......................................................................... 277
Explicitly Setting Texture Data. ............................................................... 277
Using Pixel Unpack Buffers . .................................................................... 280
Copying Data from the Framebuffer . ...................................................... 281
Loading Images from Files . ..................................................................... 282
Retrieving Texture Data ........................................................................... 287
Texture Data Layout . ............................................................................... 288
Sampler Objects. ...................................................................................... 292
Sampler Parameters . ............................................................................ 294
Using Textures . ........................................................................................ 295
Texture Coordinates. ................................................................................ 298
Arranging Texture Data ........................................................................... 302
Using Multiple Textures. .......................................................................... 303
Complex Texture Types............................................................................ 306
3D Textures . ............................................................................................. 307
Array Textures . ........................................................................................ 309
Cube-Map Textures. ................................................................................. 309
Shadow Samplers . ................................................................................... 317
Depth-Stencil Textures . ........................................................................... 318
Buffer Textures. ........................................................................................ 319
Texture Views. .......................................................................................... 321
Compressed Textures. .............................................................................. 326
Filtering . .................................................................................................. 329
Linear Filtering . ....................................................................................... 330
Using and Generating Mipmaps. ............................................................. 333
Calculating the Mipmap Level . ............................................................... 338
Mipmap Level-of-Detail Control . ............................................................ 339
Advanced Texture Lookup Functions. ..................................................... 340
Explicit Level of Detail . ........................................................................... 340
Explicit Gradient Specification . .............................................................. 340
Texture Fetch with Offsets . ..................................................................... 341
Projective Texturing. ................................................................................ 342
Texture Queries in Shaders . ..................................................................... 343
Gathering Texels . ..................................................................................... 345
Combining Special Functions . ................................................................ 345
Point Sprites . ........................................................................................... 346
Contents
xiii