summaryrefslogtreecommitdiffstats
path: root/tests/bugs/gh-841.slang.glsl
blob: 820f7d2b370be6f4581e6d315cbd0a378543138a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//TEST_IGNORE_FILE:
#version 450
layout(row_major) uniform;
layout(row_major) buffer;

layout(location = 0)
out vec4 _S1;

layout(location = 0)
in vec4 _S2;

flat layout(location = 1)
in uint _S3;


void main()
{
    vec4 result_0;
    if((_S3 & 1U) != 0U)
    {
        result_0 = _S2 + 1.00000000000000000000;
    }
    else
    {
        result_0 = _S2;
    }
    _S1 = result_0;
    return;
}