Debugging of graphics engine