Shader metaprogramming
Michael D. McCool, Zheng Qin, Tiberiu S. Popa · SIGGRAPH/EUROGRAPHICS Conference On Graphics Hardware · 2002
Modern graphics accelerators have embedded programmable components in the form of vertex and fragment shading units. Current APIs permit specification of the programs for these components using an assembly-language level interface. Compilers for high-level shading languages are available but these read in an external string specification, which can be inconvenient.It is possible, using standard C++, to define a high-level shading language directly in the API. Such a language can be nearly indistinguishable from a special-purpose shading language, yet permits more direct interaction with the specification of textures and parameters, simplifies implementation, and enables on-the-fly generation, manipulation, and specialization of shader programs. A shading language built into the API also permits the lifting of C++ host language type, modularity, and scoping constructs into the shading language without any additional implementation effort.
Cited by 98 works. doi:10.5555/569046.569055
Authors
References
- An image synthesizer
- A user-programmable vertex engine
- Texturing and modeling: a procedural approach
- A real-time procedural shading system for programmable graphics hardware
- Optimizing ML with run-time code generation
- Interactive multi-pass programmable shading
- A language for shading and lighting calculations
- VCODE
- Realistic, hardware-accelerated shading and lighting
- PIC — A language for typesetting graphics