1 of 6

Shaders

2 of 6

3 of 6

What is a GPU?

  • Graphics Processing Unit
  • Like a processor with a lot of cores (>1000)
  • Less general purpose
  • May be integrated into CPU

4 of 6

What is a Shader?

  • A program that runs on the GPU
  • A few types:
    • Vertex
    • Fragment
    • Compute

5 of 6

Fragment Shaders

  • Runs on every pixel at once
  • Calculates output color for the pixel

6 of 6

Resources