wgpu/tests/cases/glsl_if_preprocessor.vert
2021-01-23 10:02:07 -05:00

15 lines
202 B
GLSL

#version 460 core
#define TEST 3
#define TEST_EXPR 2 && 2
#if TEST_EXPR - 2 == 0
#error 0
#elif TEST_EXPR - 2 == 1
#error 1
#elif TEST_EXPR - 2 == 2
#error 2
#else
#error You shouldn't do that
#endif