# US 12,154,208 B2 · Method and system of decoupled object space shading

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,154,208 B2
- Document ID: US12154208B2
- Status: Granted
- Kind: B2
- Application number: 17/726,693
- Filed: 2022-04-22
- Published: 2022-08-04
- Granted: 2024-11-26
- Earliest claimed: 2019-10-16
- Assignees: Oxide Interactive, LLC
- Applicants: Oxide Interactive, Inc.
- Inventors: Daniel Kurt Baker; Timothy James Kipp; Nathan Heazlett; Gregory Osefo
- Web page: https://patentgrep.com/patent/US12154208B2

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 17/20: Finite element generation, e.g. wire-frame surface description, {tesselation}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for generating a graphic display of frame images comprises collecting one or more graphic objects to be rendered into a frame image, the one or more graphic objects being represented as a mesh in object space; determining one or more shadels to be computed for the frame image based at least on the one or more input attributes for each of the one or more graphic objects, each shadel being a shaded portion of the mesh; allocating space in a shadel storage buffer for the one or more shadels; populating a work queue buffer, the work queue buffer containing a list of commands to be executed to compute each of the one or more shadels; computing the determined one or more shadels to generate a shaded mesh; and rasterizing the shaded mesh into the frame image. The method can be implemented using a graphics processing unit (GPU).

## Claims

### Claim 1

A method for generating a graphic display of frame images, the method comprising:
collecting, via a graphics processing unit (GPU), one or more graphic objects to be rendered into a frame image, the one or more graphic objects being represented as a mesh in object space;
determining, via the GPU in a raster loop at a first frequency, one or more shadels to be computed for the frame image based at least on the one or more input attributes for each of the one or more graphic objects, each shadel being a shaded portion of the mesh;
allocating, via the GPU in a shade loop at a second frequency, space in a shadel storage buffer for the one or more shadels by subdividing the shadel storage buffer into a plurality of subdivisions;
performing atomic exchange increments on respective ones of the plurality of subdivisions, wherein the atomic exchange increments are performed in parallel using GPU hardware atomic operations, and wherein the atomic exchange increments are performed using hash functions to map the one or more shadels to the respective ones of the plurality of subdivisions;
populating, via the GPU, a work queue buffer, the work queue buffer containing a list of commands to be executed to compute each of the one or more shadels;
computing, via the GPU, the determined one or more shadels to generate a shaded mesh; and
rasterizing, via the GPU, the shaded mesh into the frame image.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining the one or more shadels to be computed includes performing a proxy render of the frame image.

### Claim 3 (depends on 2)

The method of claim 2, wherein performing the proxy render of the frame image comprises:
clearing a bitfield element of a shadel remap buffer;
for each pixel in the frame image, performing a mapping operation to identify a group of shadels needed to determine a color of the pixel in the frame image;
computing a location of a respective occupancy bit for each group of shadels in 2D remap buffer; and
setting the respective occupancy bit for each group of shadels.

### Claim 4 (depends on 3)

The method of claim 3, wherein the mapping operation includes manually implementing a trilinear filter or a bilinear filter.

### Claim 5 (depends on 3)

The method of claim 3, wherein each group of shadels needed to determine the color of the pixels in the frame image includes one or more shadels.

### Claim 6 (depends on 2)

The method of claim 2, wherein the proxy render of the frame image is performed using pixel shader hardware.

### Claim 7 (depends on 1)

The method of claim 1, wherein a number of shadels to be computed for the frame image is at least twice as large as a number of pixels in the frame image.

### Claim 8 (depends on 1)

The method of claim 1, wherein populating the work queue buffer includes:
generating a work list for each of the one or more shadels, the work list for each respective shadel including a location of the respective shadel in the shadel storage buffer and a level of detail of the respective shadel; and
populating a work dispatch parameter buffer with a start location of the work list for each of the one or more shadels and with a number of items to be shaded.

### Claim 9

A graphics rendering system for generating a graphic display of frame images, the system comprising:
a memory storing one or more graphic objects to be rendered into a frame image; and
a graphics rendering engine operable to:
collect the one or more graphic objects to be rendered into a frame image, the one or more graphic objects being represented as a mesh in object space;
determine, via the GPU in a raster loop at a first frequency, one or more shadels to be computed for the frame image based at least on the one or more input attributes for each of the one or more graphic objects, each shadel being a shaded portion of the mesh;
allocate, via the GPU in a shade loop at a second frequency, space in a shadel storage buffer for the one or more shadels by subdividing the shadel storage buffer into a plurality of subdivisions;
perform atomic exchange increments on respective ones of the plurality of subdivisions, wherein the atomic exchange increments are performed in parallel using GPU hardware atomic operations, and wherein the atomic exchange increments are performed using hash functions to map the one or more shadels to the respective ones of the plurality of subdivisions;
populate, via the GPU, a work queue buffer, the work queue buffer containing a list of commands to be executed to compute each of the one or more shadels;
compute, via the GPU, the determined one or more shadels to generate a shaded mesh; and
rasterize, via the GPU, the shaded mesh into the frame image.

### Claim 10 (depends on 9)

The system of claim 9, wherein to determine the one or more shadels to be computed, the graphics rendering engine is operable to perform a proxy render of the frame image.

### Claim 11 (depends on 10)

The system of claim 10, wherein to perform the proxy render of the frame image, the graphics rendering engine is operable to:
clear a bitfield element of a shadel remap buffer;
for each pixel in the frame image, perform a mapping operation to identify a group of shadels needed to determine a color of the pixel in the frame image;
compute a location of a respective occupancy bit for each group of shadels in 2D remap buffer; and
set the respective occupancy bit for each group of shadels.

### Claim 12 (depends on 11)

The system of claim 11, wherein the mapping operation includes manually implementing a trilinear filter or a bilinear filter.

### Claim 13 (depends on 11)

The system of claim 11, wherein each group of shadels needed to determine the color of the pixels in the frame image includes one or more shadels.

### Claim 14 (depends on 10)

The system of claim 10, wherein the proxy render of the frame image is performed using pixel shader hardware.

### Claim 15 (depends on 9)

The system of claim 9, wherein a number of shadels to be computed for the frame image is at least twice as large as a number of pixels in the frame image.

### Claim 16 (depends on 9)

The system of claim 9, wherein to populate the work queue buffer, the graphics rendering engine is operable to:
generate a work list for each of the one or more shadels, the work list for each respective shadel including a location of the respective shadel in the shadel storage buffer and a level of detail of the respective shadel; and
populate a work dispatch parameter buffer with a start location of the work list for each of the one or more shadels and with a number of items to be shaded.

### Claim 17 (depends on 9)

The system of claim 9, further comprising a graphics processing unit (GPU) configured to execute the graphics rendering engine.

### Claim 18

A system for generating a graphic display of frame images, the system comprising:
a memory storing one or more graphic objects to be rendered into a frame image; and
one or more processing units coupled to the memory, at least one of the one or more processing units being operable to:
collect the one or more graphic objects to be rendered into a frame image, the one or more graphic objects being represented as a mesh in object space;
determine, via the GPU in a raster loop at a first frequency, one or more shadels to be computed for the frame image based at least on the one or more input attributes for each of the one or more graphic objects, each shadel being a shaded portion of the mesh;
allocate, via the GPU in a shade loop at a second frequency, space in a shadel storage buffer for the one or more shadels by subdividing the shadel storage buffer into a plurality of subdivisions;
perform atomic exchange increments on respective ones of the plurality of subdivisions, wherein the atomic exchange increments are performed in parallel using GPU hardware atomic operations, and wherein the atomic exchange increments are performed using hash functions to map the one or more shadels to the respective ones of the plurality of subdivisions;
populate, via the GPU, a work queue buffer, the work queue buffer containing a list of commands to be executed to compute each of the one or more shadels;
compute, via the GPU, the determined one or more shadels to generate a shaded mesh; and
rasterize, via the GPU, the shaded mesh into the frame image.

### Claim 19 (depends on 18)

The system of claim 18, wherein to determine the one or more shadels to be computed, the at least one of the one or more processing units is operable to perform a proxy render of the frame image.

### Claim 20 (depends on 19)

The system of claim 19, wherein to perform the proxy render of the frame image, the at least one of the one or more processing units is operable to:
clear a bitfield element of a shadel remap buffer;
for each pixel in the frame image, perform a mapping operation to identify a group of shadels needed to determine a color of the pixel in the frame image;
compute a location of a respective occupancy bit for each group of shadels in 2D remap buffer; and
set the respective occupancy bit for each group of shadels.

### Claim 21 (depends on 20)

The system of claim 20, wherein the mapping operation includes manually implementing a trilinear filter or a bilinear filter.

### Claim 22 (depends on 20)

The system of claim 20, wherein each group of shadels needed to determine the color of the pixels in the frame image includes one or more shadels.

### Claim 23 (depends on 19)

The system of claim 19, wherein the proxy render of the frame image is performed using pixel shader hardware.

### Claim 24 (depends on 18)

The system of claim 18, wherein a number of shadels to be computed for the frame image is at least twice as large as a number of pixels in the frame image.

### Claim 25 (depends on 18)

The system of claim 18, wherein to populate the work queue buffer, the at least one of the one or more processing units is operable to:
generate a work list for each of the one or more shadels, the work list for each respective shadel including a location of the respective shadel in the shadel storage buffer and a level of detail of the respective shadel; and
populate a work dispatch parameter buffer with a start location of the work list for each of the one or more shadels and with a number of items to be shaded.
