摘要 |
PROBLEM TO BE SOLVED: To provide an image processing apparatus which processes graphics efficiently at a high speed in space-partitioning drawing, and an image processing method.SOLUTION: A compiler processing unit outputs a shader program divided into a pre-processing shader formed by extracting a function required for generating a color/depth value and a post-processing shader. A spatial index addition unit generates a spatial index after vertex processing to create a vertex buffer with spatial index. A pre-processing unit performs rasterization to acquire a pixel for each space defined by the spatial index, and generates a color value and a depth value on the basis of the pre-processing shader. A post-processing unit performs texture shading processing based on the post-processing shader, on a pixel decided to be written on an output color buffer. A pixel output unit outputs a color value of the pixel obtained by the pre-processing unit and the post-processing unit to the output color buffer. |