The BrookGPU compilation and runtime architecture consists of a two
components. BRCC is the BrookGPU compiler is a source to
source metacompiler which translates Brook source files (.br) into
.cpp files. The compiler converts Brook primatives into legal C++
syntax with the help of the BRT, Brook
RunTime library.
The BRT is an architecture independent software layer which implements
the backend support of the Brook primatives for particular hardware.
The BRT is a class library which presents a generic interface for the
compiler to use. The implementation of the class methods are
customized for each hardware supported by the system. The
backend implementation is choosen at runtime based on the hardware
available on the system or at request of the user. The backends
include: DirectX9, OpenGL ARB, NVIDIA NV3x, and C++ reference.
|