Pixel Shader Stage

Input data that is available to the pixel shader stage includes vertex attributes that can be selected, on a per-Element basis, to be interpolated with or without perspective correction, or be treated as constant per-primitive.

Outputs are one or more 4-vectors of output data for the current pixel location, or no color (if the pixel is discarded).

The Direct3D runtime calls the following driver functions to create, set up, and destroy the pixel shader:

CalcPrivateShaderSize

CreatePixelShader(D3D10)

DestroyShader

PsSetConstantBuffers

PsSetSamplers

PsSetShader

PsSetShaderResources