Add option to glslangValidator to inject preamble
This commit is contained in:
committed by
arcady-lunarg
parent
1aefd184a6
commit
893145ead2
20
Test/glsl.-P.frag
Normal file
20
Test/glsl.-P.frag
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user