Add option to glslangValidator to inject preamble

This commit is contained in:
Moritz Heinemann
2023-03-14 15:55:17 +01:00
committed by arcady-lunarg
parent 1aefd184a6
commit 893145ead2
4 changed files with 84 additions and 4 deletions

20
Test/glsl.-P.frag Normal file
View File

@@ -0,0 +1,20 @@
#version 450
layout(location=0) out vec4 color;
void main()
{
#ifndef TEST1
#error TEST1 is not defined
#endif
#ifndef TEST2
#error TEST2 is not defined
#endif
#ifndef TEST3
#error TEST3 is not defined
#endif
color = vec4(1.0);
}