A System for Rapid Exploration of Shader Optimization Choices
Yong HeTheresa FoleyKayvon Fatahalian
ACM Trans. Graph. (2016)
teaser

We present Spire, a shading language and compiler framework that facilitates rapid exploration of shader optimization choices (such as frequency reduction and algorithmic approximation) afforded by modern real-time graphics engines. Our design combines ideas from rate-based shader programming with new language features that expand the scope of shader execution beyond traditional GPU hardware pipelines, and enable a diverse set of shader optimizations to be described by a single mechanism: overloading shader terms at various spatio-temporal computation rates provided by the pipeline. In contrast to prior work, neither the shading language's design, nor our compiler framework's implementation, is specific to the capabilities of any one rendering pipeline, thus Spire establishes architectural separation between the shading system and the implementation of modern rendering engines (allowing different rendering pipelines to utilize its services). We demonstrate use of Spire to author complex shaders that are portable across different rendering pipelines and to rapidly explore shader optimization decisions that span multiple compute and graphics passes and even offline asset preprocessing. We further demonstrate the utility of Spire by developing a shader level-of-detail library and shader auto-tuning system on top of its abstractions, and demonstrate rapid, automatic re-optimization of shaders for different target hardware platforms.

Yong He, Theresa Foley, Kayvon Fatahalian (2016). A System for Rapid Exploration of Shader Optimization Choices. ACM Trans. Graph., 35(4), 112:1--112:12.

@article{He:2016:SRE:2897824.2925923,
author = {Yong He and Theresa Foley and Kayvon Fatahalian},
title = {A System for Rapid Exploration of Shader Optimization Choices},
journal = {ACM Trans. Graph.},
issue_date = {July 2016},
volume = {35},
number = {4},
month = jul,
year = {2016},
issn = {0730-0301},
pages = {112:1--112:12},
articleno = {112},
numpages = {12},
url = {http://doi.acm.org/10.1145/2897824.2925923},
doi = {10.1145/2897824.2925923},
acmid = {2925923},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {real-time rendering, shading languages},
}