Kongruent - A Shader Language and Compiler for Efficient and Approachable GPU-Programming
摘要
We introduce Kongruent, a new shader language and compiler, developed from scratch without any dependencies. Kongruent can cross-compile to all relevant system shader languages and bytecodes and provides significant advances in ease of use, compilation times, shader optimization and data-exchange between CPUs and GPUs. We provide an overview of the overall project and detail a collection of interesting features currently implemented in Kongruent. This includes its handling of data-buffers, data-exchange between shader stages, integration with regular programming languages and its compilation model. The compilation model in particular is discussed in detail as it is the basis that unlocks many of its other features.