AnySL: Efficient and Portable Shading for Ray Tracing
Date
2010Metadata
Show full item recordAbstract
While a number of different shading languages have been developed, their efficient integration into an existing renderer is notoriously difficult, often boiling down to implementing an entire compiler toolchain for each language. Furthermore, no shading language is broadly supported across the variety of rendering systems. AnySL attacks this issue from multiple directions: We compile shaders from different languages into a common, portable representation, which uses subroutine threaded code: Every language operator is translated to a function call. Thus, the compiled shader is generic with respect to the used types and operators. The key component of our system is an embedded compiler that instantiates this generic code in terms of the renderer's native types and operations. It allows for flexible code transformations to match the internal structure of the renderer and eliminates all overhead due to the subroutine threaded code. For SIMD architectures we automatically perform vectorization of scalar shaders which speeds up rendering by a factor of 3.9 on average on SSE. The results are highly optimized, parallel shaders that operate directly on the internal data structures of a renderer. We show that both traditional shading languages such as RenderMan, but also C/C++-based shading languages, can be fully supported and deliver high performance across different CPU renderers.
BibTeX
@inproceedings {10.2312:EGGH:HPG10:097-105,
booktitle = {High Performance Graphics},
editor = {Michael Doggett and Samuli Laine and Warren Hunt},
title = {{AnySL: Efficient and Portable Shading for Ray Tracing}},
author = {Karrenberg, Ralf and Rubinstein, Dmitri and Slusallek, Philipp and Hack, Sebastian},
year = {2010},
publisher = {The Eurographics Association},
ISSN = {2079-8687},
ISBN = {978-3-905674-26-2},
DOI = {10.2312/EGGH/HPG10/097-105}
}
booktitle = {High Performance Graphics},
editor = {Michael Doggett and Samuli Laine and Warren Hunt},
title = {{AnySL: Efficient and Portable Shading for Ray Tracing}},
author = {Karrenberg, Ralf and Rubinstein, Dmitri and Slusallek, Philipp and Hack, Sebastian},
year = {2010},
publisher = {The Eurographics Association},
ISSN = {2079-8687},
ISBN = {978-3-905674-26-2},
DOI = {10.2312/EGGH/HPG10/097-105}
}