Pixel shaders, also known as fragment shaders, compute color and other attributes of each fragment.
We've one pixel shader in HLSL which is used for slightly different things in a few places, and as such …