tests/auto/buildtimeqsb/subdir/test/texture_def.frag
raw| 1 | #version 440 |
| 2 | |
| 3 | #ifdef MY_DEFINE |
| 4 | #ifdef ANOTHER_DEFINE |
| 5 | layout(location = 0) in vec2 v_texcoord; |
| 6 | layout(location = 0) out vec4 fragColor; |
| 7 | layout(binding = 1) uniform sampler2D tex; |
| 8 | #endif |
| 9 | #endif // else breaks compilation |
| 10 | |
| 11 | void main() |
| 12 | { |
| 13 | fragColor = texture(tex, v_texcoord); |
| 14 | } |