]> git.sesse.net Git - movit/blobdiff - test_util.h
Better error messages when skipping compute shader benchmarks.
[movit] / test_util.h
index a0767ad81b097920f60483188fdbb78e60a7728a..6ee32284a827777a81435027a8b7cad73e70dbe5 100644 (file)
@@ -101,6 +101,11 @@ public:
        // compute shaders). Will also output a message to stderr if so.
        bool should_skip();
 
+#ifdef HAVE_BENCHMARK
+       // Same, but outputs a message to the benchmark instead of to stderr.   
+       bool should_skip(benchmark::State *benchmark_state);
+#endif
+
        bool active() const { return disable_compute_shaders; }
 
 private: