摘要 |
A method, system, and computer-readable storage medium are disclosed for graphics application programming interface (API) interception. In one embodiment, one or more function calls to a graphics API may be received. The function calls may comprise one or more parameters usable to render a scene. The scene's geometry comprising one or more objects may be generated based on the one or more parameters. One or more graphics programming unit (GPU) shaders may be generated based on the one or more parameters. Each of the GPU shaders may comprise instructions for rendering a corresponding one or more of the objects based on the one or more parameters. The geometry and the GPU shader(s) may be sent to a GPU. In one embodiment, the execution of the GPU shader(s) on the GPU may be caused to render the scene comprising the one or more objects.
|