diff options
author | Mark Janes <mark.a.janes@intel.com> | 2016-08-02 23:34:45 -0700 |
---|---|---|
committer | Mark Janes <mark.a.janes@intel.com> | 2017-06-19 14:04:47 -0700 |
commit | e7ad84336063f31c08b323bf1d8655759b0a1cfc (patch) | |
tree | 79ab38da0f7a092ed1ae82bf228dbfa31e5f5818 /retrace/daemon/test | |
parent | 804b94a456d73f0a281553c91d98972f96e6ce42 (diff) |
Add geometry shader tracking
Diffstat (limited to 'retrace/daemon/test')
-rw-r--r-- | retrace/daemon/test/retrace_daemon_test.cpp | 8 | ||||
-rw-r--r-- | retrace/daemon/test/retrace_metrics_test.cpp | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/retrace/daemon/test/retrace_daemon_test.cpp b/retrace/daemon/test/retrace_daemon_test.cpp index 0e123cc3..21f0ef02 100644 --- a/retrace/daemon/test/retrace_daemon_test.cpp +++ b/retrace/daemon/test/retrace_daemon_test.cpp @@ -59,7 +59,8 @@ class NullCallback : public OnFrameRetrace { const ShaderAssembly &vertex, const ShaderAssembly &fragment, const ShaderAssembly &tess_control, - const ShaderAssembly &tess_eval) { + const ShaderAssembly &tess_eval, + const ShaderAssembly &geom) { fs = fragment.shader; } void onRenderTarget(RenderId renderId, RenderTargetType type, @@ -101,7 +102,8 @@ TEST_F(RetraceTest, ReplaceShaders) { NullCallback cb; FrameRetrace rt; rt.openFile(test_file, 7, &cb); - rt.replaceShaders(RenderId(1), ExperimentId(0), "bug", "blarb", "", "", &cb); + rt.replaceShaders(RenderId(1), ExperimentId(0), "bug", "blarb", "", + "", "", &cb); EXPECT_GT(cb.compile_error.size(), 0); rt.retraceShaderAssembly(RenderId(1), &cb); @@ -112,7 +114,7 @@ TEST_F(RetraceTest, ReplaceShaders) { " gl_Position = vec4(coord2d.x, -1.0 * coord2d.y, 0, 1);\n" " v_TexCoordinate = vec2(coord2d.x, coord2d.y);\n" "}\n"); - rt.replaceShaders(RenderId(1), ExperimentId(0), vs, cb.fs, "", "", &cb); + rt.replaceShaders(RenderId(1), ExperimentId(0), vs, cb.fs, "", "", "", &cb); EXPECT_EQ(cb.compile_error.size(), 0); } diff --git a/retrace/daemon/test/retrace_metrics_test.cpp b/retrace/daemon/test/retrace_metrics_test.cpp index fb7abd0f..9d77b847 100644 --- a/retrace/daemon/test/retrace_metrics_test.cpp +++ b/retrace/daemon/test/retrace_metrics_test.cpp @@ -44,7 +44,8 @@ class MetricsCallback : public OnFrameRetrace { const ShaderAssembly &vertex, const ShaderAssembly &fragment, const ShaderAssembly &tess_control, - const ShaderAssembly &tess_eval) {} + const ShaderAssembly &tess_eval, + const ShaderAssembly &geom) {} void onRenderTarget(RenderId renderId, RenderTargetType type, const uvec & pngImageData) {} void onShaderCompile(RenderId renderId, ExperimentId experimentCount, |