56 inline static int main(
int argc,
char** argv) {
58 return recreateVKCacheApplication->run(argc, argv,
"Recreate VK cache Application",
nullptr, Application::WINDOW_HINT_INVISIBLE);
67 Engine::getInstance()->dispose();
71 Engine::getInstance()->initialize();
72 if (Engine::getInstance()->getGraphicsRendererType() != Renderer::RENDERERTYPE_VULKAN) {
73 Console::println(
"Note: recreatevkcache does not run with --vulkan, Vulkan shader cache can not get created. Exiting.");
78 void reshape(int32_t width, int32_t height)
override {
79 Engine::getInstance()->reshape(width, height);
87 int main(
int argc,
char** argv)
89 Console::println(
string(
"recreatevkcache ") + Version::getVersion());
90 Console::println(Version::getCopyright());
94 Console::println(
"Deleting shader/vk folder");
96 FileSystem::getInstance()->removePath(
"shader/vk",
true);
98 Console::println(
string() +
"An error occurred: " + exception.what());
101 if (FileSystem::getInstance()->exists(
"shader/vk") ==
false) {
102 FileSystem::getInstance()->createPath(
"shader/vk");
105 Console::println(
string() +
"An error occurred: " + exception.what());
107 Console::println(
"Creating shader/vk shader cache");
109 Console::println(
"Done");
112 Application::exit(Application::EXITCODE_SUCCESS);
Application base class, please make sure to allocate application on heap to have correct application ...
File system singleton class.
std::exception Exception
Exception base class.
int main(int argc, char **argv)
#define FORBID_CLASS_COPY(CLASS)