# US 8,593,458 B2 · Systems and methods of multidimensional query resolution and computation organization

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

- Number: US 8,593,458 B2
- Document ID: US8593458B2
- Status: Granted
- Kind: B2
- Application number: 12/563,870
- Filed: 2009-09-21
- Published: 2010-03-25
- Granted: 2013-11-26
- Earliest claimed: 2008-09-22
- Assignees: Caustic Graphics, Inc.
- Applicants: James Alexander McCombe; Luke Tilman Peterson; Ryan R. Salsbury; Sean Matthew Gies
- Inventors: James Alexander McCombe; Luke Tilman Peterson; Ryan R. Salsbury; Sean Matthew Gies
- Web page: https://patentgrep.com/patent/US8593458B2

## CPC

- G06T 15/06: Ray-tracing
- G06T 15/80: Shading
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Aspects include API interfaces for interfacing shaders with other components and/or code modules that provide ray tracing functionality. For example, API calls may allow direct contribution of light energy to a buffer for an identified pixel, and allow emission of new rays for intersection testing alone or in bundles. The API also can provide a mechanism for associating arbitrary data with ray definition data defining a ray to be tested through a shader using the emit ray call. The arbitrary data is provided to a shader associated with an object that is identified subsequently as having been intersected by the ray. The data can include code, or a pointer to code, that can be used by or run after the shader. The data also can be propagated through a series of shaders, and associated with rays instantiated in each shader. Recursive shaders can be recompiled as non-recursive shaders interfacing with API semantics according to the description.

## Claims

### Claim 1

A query-resolver system, comprising:
a memory storing a dataset comprising a plurality of elements, each of the elements defined by values for up to n variables, n>=3;
a system interface exposing a query emit interface for accepting a query defined by parameters and a solution contribute interface for accepting, from executing code modules, results to be written to a buffer; and
a processor configured with program code
for accessing the memory to resolve the query by locating one or more of the elements that meet parameters defined by the query, and upon locating at least one element meeting the parameters,
for executing one or more executable code modules selected based on one or more of data provided with the query and data associated with that element,
and to use the system interface for accepting, through the query emit interface, from one or more of the executing code modules, one or more of a further query to be resolved, and through the solution contribute interface, a result to be written to the buffer.

### Claim 2 (depends on 1)

The system of claim 1, wherein the buffer comprises a plurality of locations, and each query is associated with a respective buffer location, which is made available to those code modules associated with elements that meet the parameters of that query, and to which each of those code modules can use the solution contribute interface to write results to the respective buffer locations.

### Claim 3 (depends on 1)

The system of claim 1, wherein each element of the dataset is associated with at least one executable code module, which is executed upon determining that such element satisfies a query.

### Claim 4 (depends on 1)

The system of claim 1, wherein at least one query is associated with code to be executed upon identification of at least one element of the dataset that meets parameters associated with the query.

### Claim 5 (depends on 1)

The system of claim 1, wherein the query is associated with a location in the buffer and the query is also associated with additional data interpretable to modify behavior of the selected executable code module.

### Claim 6 (depends on 5)

The system of claim 5, wherein the modification comprises redirecting a write to the location in the buffer to a location determined according to the additional data.

### Claim 7 (depends on 1)

The system of claim 1, wherein the query is associated with a location in the buffer and the query is also associated with a pointer to executable code, which the system is configured to execute in addition to the selected executable code module.

### Claim 8 (depends on 7)

The system of claim 7, wherein the system is operable to execute the executable code identified by the pointer after completion of the selected executable code module.

### Claim 9 (depends on 1)

The system of claim 1, wherein the query is also associated with a pointer to executable code, which when executed performs a procedural geometry routine.

### Claim 10

A non-transitory computer readable media, storing computer readable instructions and data comprising:
a plurality of code modules;
computer executable code for implementing a method for selecting code modules to be executed, and providing inputs for their execution, the method comprising:
querying, with queries, a database comprising a plurality of entries,
each of the entries specified by respective values for a plurality of parameters, each entry associated with at least one of the code modules, and
each query comprising a specification that is resolvable into respective ranges of the values of each of the parameters that meet that specification, and additional to the query specification, at least one additional data item to be received as input by one or more to-be-identified code modules;
resolving each query to one or more entries of the database that meet that query's specification, if any exist in the database;
identifying, for that query, one or more code modules associated with those one or more entries; and
providing, from that query, the at least one additional data item as input to those one or more code modules.

### Claim 11 (depends on 10)

The computer readable media of claim 10, wherein a buffer comprises a plurality of locations, and each query is associated with a respective location in the buffer, and the method further comprises making available, using a resolution code module, to those code modules associated with the one or more entries to which the query resolved, data obtained from the respective location in the buffer associated with that query, wherein the resolution code module is identified by that query.

### Claim 12 (depends on 10)

The computer readable media of claim 10, wherein a buffer comprises a plurality of locations, and each query is associated with a respective location in the buffer, and the method further comprises making available the respective location in the buffer associated with that query to those code modules associated with the one or more entries to which the query resolved.

### Claim 13 (depends on 10)

The computer readable media of claim 10, wherein the method further comprises accepting, through a programming interface, a specification and at least one additional data item for a query.

### Claim 14 (depends on 13)

The computer readable media of claim 13, wherein the method further comprises accepting a reference to an existing query, during accepting of a new query, wherein the new query adopts one or more attributes of the existing query.

### Claim 15 (depends on 13)

The computer readable media of claim 13, wherein the method further comprises accepting, from an executing code module, an output to a globally-accessible memory location determined according to the at least one additional data item associated with the query that resolved to an entry of the database associated with that executing code module.

### Claim 16 (depends on 10)

The non-transitory computer readable media of claim 10, wherein the instructions constituting at least one of the code modules of the plurality of code modules comprise instructions for interpreting the at least one additional data item as a pointer to a module of computer executable code to be executed.

### Claim 17 (depends on 10)

The non-transitory computer readable media of claim 10, wherein the at least one additional data item comprises an identifier of a buffer location associated with the query and a second memory location, and the instructions constituting at least one of the code modules of the plurality of code modules comprise instructions for redirecting an output destined for the buffer location to the second memory location.

### Claim 18

A machine-implemented method comprising:
querying, with queries, a database comprising a plurality of entries,
each of the entries specified by respective values for a plurality of parameters, each entry associated with at least one of the code modules, and
each query comprising a specification that is resolvable into respective ranges of the values of each of the parameters that meet that specification, and additional to the query specification, at least one additional data item to be received as input by one or more to-be-identified code modules;
resolving each query to one or more entries of the database that meet that query's specification, if any exist in the database;
identifying, for that query, one or more code modules associated with those one or more entries; and
providing, from that query, the at least one additional data item as input to those one or more code modules identified as being associated with those one or more entries.

### Claim 19 (depends on 18)

The machine-implemented method of claim 18, wherein a buffer comprises a plurality of locations, and each query is associated with a respective location in the buffer, and the method further comprises making available, by a resolve code module, to those code modules associated with the one or more entries to which the query resolved, data obtained from the respective location in the buffer associated with that query, wherein the resolve code module is identified by that query.

### Claim 20 (depends on 18)

The machine-implemented method of claim 18, wherein a buffer comprises a plurality of locations, and each query is associated with a respective location in the buffer, and the method further comprises making available the respective location in the buffer associated with that query to those code modules associated with the one or more entries to which the query resolved.

### Claim 21 (depends on 18)

The machine-implemented method of claim 18, wherein the method further comprises accepting, through a programming interface, a query associated with a respective at least one additional data item.

### Claim 22 (depends on 21)

The machine-implemented method of claim 21, wherein the method further comprises accepting a reference to an existing query, during accepting of a new query, wherein the new query adopts one or more attributes of the existing query.

### Claim 23 (depends on 18)

The machine-implemented method of claim 18, wherein the method further comprises accepting, from an executing code module, an output to a globally-accessible memory location determined according to the at least one additional data item associated with the query that resolved to an entry of the database associated with that executing code module.
