Patent ID: 8379022

Claim:
A method, comprising: determining that a first fragment is to be rasterized, and in response to the determination that the first fragment is to be rasterized: storing a predetermined value for the first fragment into a first rasterization target, the predetermined value indicating that the first fragment is to be excluded from raytracing operations, performing a shading operation for the first fragment to compute a rasterized color value of the first fragment, and storing the rasterized color value of the first fragment to a second rasterization target; determining that a second fragment is to be raytraced, and in response to the determination that the second fragment is to be raytraced: storing a primitive identifier of the second fragment into a third rasterization target, storing a null color value to a fourth rasterization target for the second fragment, and computing a raytraced color value for the second fragment, using the primitive identifier of the second fragment stored in the third rasterization target; and once the first fragment is rasterized and the second fragment is raytraced, compositing the first fragment and the second fragment to generate a final frame; wherein the null color value stored to the fourth rasterization target facilitates the compositing of the first fragment and the second fragment to generate the final frame.