arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Computer Graphics and Computer-Aided Design

Functional Programming of Geometry Shaders

Jiří Havel

· Digital Library (University of West Bohemia)

See on the map

Abstract

This paper focuses on graphical shader programming, which is essential for real-time rendering. Opposite to classical low
\nlevel, structured languages, functional approach is used in this work and existing work is extended to cover geometry shader
\nprogramming. The compiler is able to transform the program in a way that is hard to achieve with classical languages. The
\nprogram is written for all pipeline stages at once and the compiler does the partitioning. This allows the programmer to focus
\non program semantics and let the compiler take care of the efficient execution. First, this paper describes shader stages as
\nfunctions in a mathematical manner. The process of program partitioning and transformation to one of the classical languages
\nis described. Several examples show the differences between functional description and equivalent structured code.

More like this