Spark
Tim Foley, Pat Hanrahan · ACM Transactions on Graphics · 2011
In creating complex real-time shaders, programmers should be able to decompose code into independent, localized modules of their choosing. Current real-time shading languages, however, enforce a fixed decomposition into per-pipeline-stage procedures. Program concerns at other scales -- including those that cross-cut multiple pipeline stages -- cannot be expressed as reusable modules. We present a shading language, Spark, and its implementation for modern graphics hardware that improves support for separation of concerns into modules. A Spark shader class can encapsulate code that maps to more than one pipeline stage, and can be extended and composed using object-oriented inheritance. In our tests, shaders written in Spark achieve performance within 2% of HLSL.
Cited by 19 works. doi:10.1145/2010324.1965002
Authors
References
- A relational model of data for large shared data banks
- Shade trees
- An image synthesizer
- Comprehending monads
- Cg
- The Direct3D 10 system
- A real-time procedural shading system for programmable graphics hardware
- A language for shading and lighting calculations
- Shader metaprogramming
- SMASH: A Next-Generation API for Programmable Graphics Accelerators