Preshaders: optimization of GPU pro
Abstract
A shader program capable of execution on a GPU is analyzed for constant expressions. These constant expressions are replaced with references to registers or memory addresses on the GPU. A preshader is created that comprises two executable files. The first executable file contains the shader program with the each constant expression removed and replaced with a unique reference accessible by the GPU. The first file is executable at the GPU. A second file contains the removed constant expressions along with instructions to place the values generated at the associated reference. The second executable file is executable at a CPU. When the preshader is executed, an instance of the first file is executed at the GPU for each vertex or pixel that is displayed. One instance of the second file is executed at the CPU. As the preshader is executed, the constant expressions in the second file are evaluated and the resulting intermediate values are passed to each instance of the first file on the GPU.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-readable storage medium comprising computer-executable instructions that when executed perform operations comprising: analyzing a shader program to find each constant expression that evaluates to a same set of intermediate values for all instances of the shader program; generating a first executable file corresponding to the shader program and to be executed in place of the shader program by replacing each found constant expression in the shader program with a unique reference; and generating a second executable file as a preshader program to be executed prior to execution of the fi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 8,941,670 B2 | Para-virtualized high-performance computing and GDI acceleration | 2015 | 2 |
References Cited — Backward Prior Art (1)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2006152509 A1 | Interactive debugging and monitoring of shader programs executing on a graphics processor | — | 55 |
Non-Patent Literature (1)
- In the United States Patent and Trademark Office: Notice of Allowance and Fee(s) Due in re application U.S. Appl. No. 11/045,784, filed Jan. 28, 2005, 8 pages.