The StateViewer tracks state changes in DX11 and OpenGL graphics apps, using apitrace to initially capture and record traces to a .trace file. During retrace the state bins are tracked, and output to a .raw file which is visualized using the StateViewer.
The StateViewer consists of two parts:
1) d3dretrace/glretrace - State tracing, now part of apitrace. (
https://github.com/apitrace/apitrace)
2) StateViewer - This visualizer for viewing state trace data.
Link:
https://github.com/rchoetzlein/stateviewer