render triangle tester
This commit is contained in:
+5
-4
@@ -1,6 +1,6 @@
|
||||
#include <iostream>
|
||||
// #include <sophia/application.hpp>
|
||||
#include <sophia/compute_smoke_test.hpp>
|
||||
#include <sophia/render_triangle_test.hpp>
|
||||
#include <stdexcept>
|
||||
|
||||
int main(int argc, const char** argv) {
|
||||
@@ -9,9 +9,10 @@ int main(int argc, const char** argv) {
|
||||
std::cout << __FILE__ << "::" << __LINE__ << '\n';
|
||||
|
||||
try {
|
||||
sophia::runComputeSmokeTest(TESTBED_SHADER_DIR "/smoke_test.comp");
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << "Compute smoke test failed: " << e.what() << '\n';
|
||||
sophia::runRenderTriangleTest(TESTBED_SHADER_DIR "/triangle.vert",
|
||||
TESTBED_SHADER_DIR "/triangle.frag");
|
||||
} catch (const std::exception& error) {
|
||||
std::cerr << "Render triangle test failed: " << error.what() << '\n';
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user