UnitTests: Use glslang to validate GLSL shaders

This commit is contained in:
Jérôme Leclercq
2021-12-24 14:54:35 +01:00
parent 3e708cf5ed
commit f798901c23
5 changed files with 172 additions and 22 deletions

View File

@@ -7,12 +7,18 @@
#include <Nazara/Network/Network.hpp>
#include <Nazara/Physics2D/Physics2D.hpp>
#include <Nazara/Shader/Shader.hpp>
#include <glslang/Public/ShaderLang.h>
int main(int argc, char* argv[])
{
Nz::Modules<Nz::Network, Nz::Physics2D, Nz::Shader> nazaza;
if (!glslang::InitializeProcess())
return EXIT_FAILURE;
int result = Catch::Session().run(argc, argv);
glslang::FinalizeProcess();
return result;
}