Lecture 19: Textures

Computer graphics in Game development

Ivan Belyavtsev

06.03.2021

Preparation: per shape rendering

  • Refactor vertex and index buffer uploading
  • Refactor command list recording

Dabrovic Sponza

Please download from http://casual-effects.com/data/index.html

Texturing

  • Adjust model object to produce texture filenames and texture coordinates
  • Increase the size of the descriptor heap
  • Upload textures to resources
  • Adjust root signature to bind SRV and static sampler
  • Adjust input layout for main PSO
  • Create a pixel shader for textures
  • Create PSO of textures
  • Apply proper PSO before each DrawCall
// reveal.js plugins