Files
decaf-emu/tests/gpu/tiling/tiling_test.cpp

36 lines
739 B
C++
Raw Normal View History

#define CATCH_CONFIG_RUNNER
2018-11-30 18:56:30 +00:00
#include <catch.hpp>
#include "test_helpers.h"
#include <spdlog/spdlog.h>
#ifdef DECAF_VULKAN
bool vulkanBeforeStart();
bool vulkanAfterComplete();
#else
bool vulkanBeforeStart() { return true; }
bool vulkanAfterComplete() { return true; }
#endif
2018-11-30 18:56:30 +00:00
std::vector<uint8_t>
sRandomData = generateRandomData(32 * 1024 * 1024);
2018-11-30 18:56:30 +00:00
int main(int argc, char* argv[])
2018-11-30 18:56:30 +00:00
{
// Set up a Vulkan instance
if (!vulkanBeforeStart()) {
printf("Could not initialize Vulkan\n");
return -1;
2018-11-30 18:56:30 +00:00
}
// Run the test session
int result = Catch::Session().run(argc, argv);
2018-11-30 18:56:30 +00:00
// Shut down our Vulkan instance
if (!vulkanAfterComplete()) {
printf("Failed to shut down Vulkan\n");
2018-11-30 18:56:30 +00:00
}
return result;
2018-11-30 18:56:30 +00:00
}