Vertex Shader 2_0
A programmable vertex shader is made up of a set of instructions that operate on vertex 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 - vs_2_0 contains a list of the available instructions.
- Registers - vs_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.
Instruction Count
Shaders have restrictions for maximum instruction counts.
Each vertex shader can have up to 256 instructions stored.