diff options
author | Mark Janes <mark.a.janes@intel.com> | 2015-04-27 14:12:16 -0700 |
---|---|---|
committer | Mark Janes <mark.a.janes@intel.com> | 2017-06-19 14:04:44 -0700 |
commit | 5165c112bbcd487499d3318982b5e12b92c4c37e (patch) | |
tree | 94ea81028327f70f3f0bda2c94fc480bd899296d /retrace/daemon/glframe_state.hpp | |
parent | 547097e18242763ba5fe49198e2cab47fbf69ef3 (diff) |
add UI for shader display
fixes a couple of text parsing bugs
Diffstat (limited to 'retrace/daemon/glframe_state.hpp')
-rw-r--r-- | retrace/daemon/glframe_state.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/retrace/daemon/glframe_state.hpp b/retrace/daemon/glframe_state.hpp index dd069f7c..916faa4d 100644 --- a/retrace/daemon/glframe_state.hpp +++ b/retrace/daemon/glframe_state.hpp @@ -46,10 +46,14 @@ public: ~StateTrack() {} void track(const trace::Call &call); void parse(const std::string &output); + void reset() { current_program = 0; } std::string currentVertexShader() const; - std::string currentVertexAssembly() const; + std::string currentVertexIr() const; + std::string currentVertexVec4() const; std::string currentFragmentShader() const; - std::string currentFragmentAssembly() const; + std::string currentFragmentIr() const; + std::string currentFragmentSimd8() const; + std::string currentFragmentSimd16() const; private: class TrackMap { public: @@ -69,7 +73,6 @@ private: int current_program; std::map<int, std::string> shader_to_source; std::map<int, int> shader_to_type; - std::map<int, std::vector<int> > program_to_shaders; // for these maps, key is program std::map<int, std::string> program_to_vertex_shader_source; |