Pixel Shader 2_0
A programmable pixel shader is made up of a set of instructions that operate on pixel data. Registers transfer data in and out of the ALU. Additional control can be applied to modify the instruction, the results, or what data gets written out.
- Instructions - ps_2_0 contains a list of the available instructions.
- Registers - ps_2_0 lists the different types of registers used by the vertex shader arithmetic logic unit (ALU).
- InstructionModifiers are used to modify the way an instruction works.
- Masking determines what components of the destination register get written.
- SourceModifiers alter the source register data before the instruction runs.
- Swizzling gives additional control over which register components are read, copied or written.
Shaders have restrictions for maximum instuction counts.
Total Instruction slots: 96 (64 arithmetic and 32 texture)