ACM Transactions on Graphics · 2019 · 15 citations · 19 references
ComputingComputer EngineeringComputer ScienceCompilersComputer GraphicsRenderingComputer Graphics HardwareGraphics Processing Unit ArchitectureGraphics Processing Unit ComputingGraphics Processing UnitsRendering PipelineShader ProgrammingColor Rendering PipelineGpu-based RenderingGraphics Rendering PipelinesHigher-order FunctionsMachine Code GenerationPartial EvaluationShader CompilationShader Pipelines
Monte-Carlo Renderers must generate many color samples to produce a noise-free image, and for each of those, they must evaluate complex mathematical models representing the appearance of the objects in the scene. These models are usually in the form of shaders: Small programs that are executed during rendering in order to compute a value for the current sample. Renderers often compile and optimize shaders just before rendering, taking advantage of the knowledge of the scene. In principle, the entire renderer could benefit from a-priori code generation. For instance, scheduling can take advantage of the knowledge of the scene in order to maximize hardware usage. However, writing such a configurable renderer eventually means writing a compiler that translates a scene description into machine code. In this paper, we present a framework that allows generating entire renderers for CPUs and GPUs without having to write a dedicated compiler: First, we provide a rendering library in a functional/imperative language that elegantly abstracts the individual rendering concepts using higher-order functions. Second, we use partial evaluation to combine and specialize the individual components of a renderer according to a particular scene. Our results show that the renderers we generate outperform equivalent high-performance implementations written with state-of-the-art ray tracing libraries on the CPU and GPU.
19
James T. Kajiya · ACM SIGGRAPH Computer Graphics · 1986 · 2.2K citations · Full text
An improved illumination model for shaded display
Turner Whitted · Communications of the ACM · 1980 · 1.8K citations · Full text
Jonathan Ragan‐Kelley, Connelly Barnes, Andrew Adams et al. · 2013 · 895 citations
Steven G. Parker, James Bigler, Andreas Dietrich et al. · ACM Transactions on Graphics · 2010 · 669 citations