摘要 |
<p>A graphics processor includes a vertex shader 20 that processes input attribute values from a vertex buffer 26 to generate output vertex shaded attribute values 28 to be used by a rasteriser/fragment shader 22 of the graphics processor when processing an image for display. Vertex shader output attributes for which the vertex shader input attributes that the vertex shader output attribute depends on that are defined solely on a per-vertex basis or solely on a per-instance basis are identified and then, for such vertex shader output attributes, the vertex shader 20 stores, for use by the rasteriser/fragment shader 22 of the graphics processor when processing an image for display, only one copy of the vertex shader output attribute for a given vertex or instance, respectively, irrespective of the number of instances or vertices, respectively, that the output attribute value applies to. An additional invention relates to the association of meta-information with the attributes used in the vertex shading stage for use when loading or storing the attributes. The meta-information may relate to whether the output attribute should be written to memory or not and/or the form of a test to determine whether such writing should take place and the parameters for such a test.</p> |