Microsoft DirectX 8.0 (Visual Basic)

Pixel Shader Assembler Reference

This section contains reference information for the Direct3DX pixel shader assembler. Reference material is divided into the following categories.

The pixel shader assembler is comprised of a set of registers defined along with a set of operations that can be performed on the registers. Operations are expressed as instructions comprised of an operator and one or more arguments (operands).

Microsoft® DirectX® 8.0 requires intermediate computations to maintain at least 8-bit precision for all surface formats. Both higher precision (12-bit) for in-stage math and saturation to 8-bits between texture stages are recommended. No modifiable rounding modes or exceptions are supported. Multiplication should be supported with a round-to-nearest precision to minimize precision loss.