摘要 |
A graphics engine includes a setup unit and a rendering unit. The setup unit computes coefficients A, B, and C used for interpolating an attribute .nu. o f a triangle to be rendered for a graphics image. The setup unit then derives compressed coefficients Ã, ~B, and ~C based on the coefficients A, B, and C. The compressed coefficients have a fixed-point format with R integer bits le ft of a binary point and T fractional bits right of the binary point, where R&g t;1 and T>=0. R is selected based on the number of bits used for attribute .n u., T is selected based on the screen dimension, and R+T is much less than the number of bits used to represent the coefficients A, B, and C. The rendering unit performs interpolation for the attribute v using the compressed coefficients Ã, ~B, and ~C, and may be implemented with a simple (R+T)-bit n on- saturating accumulator.
|