×

Graphics processing enhancement by tracking object and/or primitive identifiers

  • US 9,710,957 B2
  • Filed: 04/05/2014
  • Issued: 07/18/2017
  • Est. Priority Date: 04/05/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method of rendering graphics with a processor, the method comprising:

  • setting up a plurality of objects in a scene in virtual space, each said object being defined by a set of vertices;

    assigning a unique object identifier to each of the objects;

    issuing one or more draw calls to draw the objects;

    manipulating parameter values of the vertices to generate output vertex parameter values;

    setting up a plurality of primitives from the vertices, each said primitive being defined by a set of one or more of the vertices and each said primitive belonging to one or more of the objects;

    performing geometry shading in which one or more output primitives are generated from one or more input primitives, wherein performing the geometry shading includes generating a primitive identifier for one or more primitives generated by the geometry shading by incrementing a primitive identifier for each input primitive by a maximum amount of geometric amplification of output primitives supported by an object with which the input primitives are associated;

    rasterizing each of the primitives for a plurality of pixels;

    writing a depth at each said pixel to a Z buffer, the Z buffer having a first resolution;

    writing one or more of the object identifiers to at least one ID buffer, such that each pixel in the Z buffer is associated with an object identifier in the ID buffer;

    processing the pixels for each of the rasterized primitives to determine a set of color values in a color buffer, the color buffer having a second resolution that is less than the first resolution; and

    determining a set of display pixels for an output frame at the resolution of the Z buffer using the color values in the color buffer and the identifiers in the ID buffer.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×