blob: becf741c11dc5d63a94a87e36143d976541e27ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// gh-841.slang
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// GitHub issue #841: failing to emit `flat` modifier in output GLSL when required
struct RasterVertex
{
float4 c : COLOR;
uint u : FLAGS;
};
float4 main(RasterVertex v) : SV_Target
{
float4 result = v.c;
if(v.u & 1)
result += 1.0;
return result;
}
|