Computer Science · Hardware and Architecture
Design and Implementation of a Shader Infrastructure and Abstraction Layer
Michael May, Supervised Robert Tobler
See on the mapAbstract
With current GPUs being more powerful than the CPU in certain domains, shader programming has become more important than ever. Although the tool-chain and language features of shader languages have recently improved, they are still not as sophisticated as those of common general-purpose languages like C++, C # or Java. In order to ben-efit from these existing features in shader programming, a seamless integration into an application language would be favorable. In this paper, an integration of shader development into C # is presented. An internal domain specific language was created that uses the tool-chain of C # and makes shader development part of the application language. Some of the benefits are shader type checks at C # compile time, use of the IDEs auto-completion feature for shaders and a flexible backend that can support the creation of different shader languages.