PostProcessingShaderGen: Use ints instead of bools for options

This commit is contained in:
Connor McLaughlin
2020-09-16 11:49:58 +10:00
parent a02feeb8e8
commit 3bd9f85af8
3 changed files with 5 additions and 3 deletions

View File

@ -146,6 +146,7 @@ void ShaderGen::WriteHeader(std::stringstream& ss)
ss << "#define lerp mix\n";
ss << "#define CONSTANT const\n";
ss << "#define GLOBAL\n";
ss << "#define VECTOR_EQ(a, b) ((a) == (b))\n";
ss << "#define VECTOR_NEQ(a, b) ((a) != (b))\n";
ss << "#define VECTOR_COMP_EQ(a, b) equal((a), (b))\n";
@ -181,6 +182,7 @@ void ShaderGen::WriteHeader(std::stringstream& ss)
ss << "#define mat3 float3x3\n";
ss << "#define mat4 float4x4\n";
ss << "#define CONSTANT static const\n";
ss << "#define GLOBAL static\n";
ss << "#define VECTOR_EQ(a, b) (all((a) == (b)))\n";
ss << "#define VECTOR_NEQ(a, b) (any((a) != (b)))\n";
ss << "#define VECTOR_COMP_EQ(a, b) ((a) == (b))\n";