Variable fragment shading with surface recasting
First Claim
1. A method, comprising:
- generating shaded samples that are covered by a primitive fragment at a first shading rate using a first sampling mode;
storing the shaded samples in a target buffer that is associated with the first sampling mode and the first shading rate, wherein the target buffer represents a first pixel resolution;
receiving a second primitive fragment;
decreasing the first shading rate to produce a second shading rate;
determining a second sampling mode;
recasting the target buffer to represent a second pixel resolution based on the second sampling mode, wherein the second pixel resolution is lower than the first pixel resolution;
generating additional shaded samples that are covered by the second primitive fragment at the second shading using the second sampling mode; and
storing the additional shaded samples in the target buffer.
1 Assignment
0 Petitions
Accused Products
Abstract
A system, method, and computer program product are provided for shading primitive fragments. A target buffer may be recast when shaded samples that are covered by a primitive fragment are generated at a first shading rate using a first sampling mode, the shaded samples are stored in the target buffer that is associated with the first sampling mode and the first shading rate, a second sampling mode is determined, and the target buffer is associated with the second sampling mode. A sampling mode and/or shading rate may be changed for a primitive. A primitive fragment that is associated with a first sampling mode and a first shading rate is received and a second sampling mode is determined for the primitive fragment. Shaded samples corresponding to the primitive fragment are generated, at a second shading rate, using the second sampling mode and the shaded samples are stored in a target buffer.
120 Citations
20 Claims
-
1. A method, comprising:
-
generating shaded samples that are covered by a primitive fragment at a first shading rate using a first sampling mode; storing the shaded samples in a target buffer that is associated with the first sampling mode and the first shading rate, wherein the target buffer represents a first pixel resolution; receiving a second primitive fragment; decreasing the first shading rate to produce a second shading rate; determining a second sampling mode; recasting the target buffer to represent a second pixel resolution based on the second sampling mode, wherein the second pixel resolution is lower than the first pixel resolution; generating additional shaded samples that are covered by the second primitive fragment at the second shading using the second sampling mode; and storing the additional shaded samples in the target buffer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method of shading, comprising:
-
receiving a primitive fragment that is associated with a first sampling mode and a first shading rate; determining that not all pixels in a pixel group comprising at east two pixels are covered by the primitive fragment; determining a second sampling mode for the primitive fragment; recasting a target buffer represented in a first pixel resolution corresponding to the first sampling mode to a second pixel resolution corresponding the second sampling mode, wherein the second pixel resolution is higher than the first pixel resolution for the pixels in the pixel group; generating, at a second shading rate, shaded samples corresponding to the primitive fragment using the second sampling mode; and storing the shaded samples in the target buffer. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A system comprising:
-
a memory storing a target buffer represented in a first pixel resolution corresponding to a first sampling mode; and one or more processing cores coupled to the memory and configured to; receive a primitive fragment that is associated with the first sampling mode and a first shading rate; determine that not all pixels in a pixel group comprising at least two pixels are covered by the primitive fragment; determine a second sampling mode for the primitive fragment; recast the target buffer represented in a first pixel resolution to a second pixel resolution corresponding to the second sampling mode, wherein the second pixel resolution is higher than the first pixel resolution for the pixels in the pixel group; generate, at a second shading rate, shaded samples corresponding to the primitive fragment using the second sampling mode; and store the shaded samples in the target buffer. - View Dependent Claims (17, 18, 19, 20)
-
Specification