diff options
Diffstat (limited to 'retrace/daemon/ui/glframe_retrace_model.cpp')
-rw-r--r-- | retrace/daemon/ui/glframe_retrace_model.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/retrace/daemon/ui/glframe_retrace_model.cpp b/retrace/daemon/ui/glframe_retrace_model.cpp index a504cd23..d0431f1b 100644 --- a/retrace/daemon/ui/glframe_retrace_model.cpp +++ b/retrace/daemon/ui/glframe_retrace_model.cpp @@ -101,13 +101,17 @@ void FrameRetraceModel::onShaderAssembly(RenderId renderId, const std::string &vertex_shader, const std::string &vertex_ir, + const std::string &vertex_nir, + const std::string &vertex_ssa, const std::string &vertex_vec4, const std::string &fragment_shader, const std::string &fragment_ir, const std::string &fragment_simd8, const std::string &fragment_simd16, const std::string &fragment_nir_ssa, - const std::string &fragment_nir_final) { + const std::string &fragment_nir_final, + const std::string &tess_control, + const std::string &tess_eval) { ScopedLock s(m_protect); m_vs_ir = vertex_ir.c_str(); m_fs_ir = fragment_ir.c_str(); @@ -116,8 +120,12 @@ FrameRetraceModel::onShaderAssembly(RenderId renderId, m_vs_vec4 = vertex_vec4.c_str(); m_fs_simd8 = fragment_simd8.c_str(); m_fs_simd16 = fragment_simd16.c_str(); + m_vs_ssa = vertex_ssa.c_str(); + m_vs_nir = vertex_nir.c_str(); m_fs_ssa = fragment_nir_ssa.c_str(); m_fs_nir = fragment_nir_final.c_str(); + m_tess_control_shader = tess_control.c_str(); + m_tess_eval_shader = tess_eval.c_str(); emit onShaders(); } @@ -375,3 +383,15 @@ FrameRetraceModel::onApi(RenderId renderId, } emit onApiCalls(); } + +QString +FrameRetraceModel::tessEvalSource() const { + ScopedLock s(m_protect); + return m_tess_eval_shader; +} + +QString +FrameRetraceModel::tessControlSource() const { + ScopedLock s(m_protect); + return m_tess_control_shader; +} |