Title: | Functional Programming of Geometry Shaders |
Authors: | Havel, Jiří |
Citation: | WSCG 2010: Communication Papers Proceedings: 18th International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision in co-operation with EUROGRAPHICS, p. 9-14. |
Issue Date: | 2010 |
Publisher: | Václav Skala - UNION Agency |
Document type: | konferenční příspěvek conferenceObject |
URI: | http://wscg.zcu.cz/WSCG2010/Papers_2010/!_2010_Short-proceedings.pdf http://hdl.handle.net/11025/11035 |
ISBN: | 978-80-86943-87-9 |
Keywords: | vykreslování;shadery;funkční programování |
Keywords in different language: | rendering;shaders;functional programming |
Abstract: | This paper focuses on graphical shader programming, which is essential for real-time rendering. Opposite to classical low level, structured languages, functional approach is used in this work and existing work is extended to cover geometry shader programming. The compiler is able to transform the program in a way that is hard to achieve with classical languages. The program is written for all pipeline stages at once and the compiler does the partitioning. This allows the programmer to focus on program semantics and let the compiler take care of the efficient execution. First, this paper describes shader stages as functions in a mathematical manner. The process of program partitioning and transformation to one of the classical languages is described. Several examples show the differences between functional description and equivalent structured code. |
Rights: | © Václav Skala - UNION Agency |
Appears in Collections: | WSCG 2010: Communication Papers Proceedings |
Please use this identifier to cite or link to this item:
http://hdl.handle.net/11025/11035
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.