summaryrefslogtreecommitdiffstats
path: root/tests/rewriter/gh-160.hlsl
blob: b412a75a183e1f40043302230f95efe7904d6124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Disabled because Slang should give the error, not downstream compiler
//TEST_IGNORE_FILE
//TEST:COMPARE_HLSL: -profile ps_4_0 -entry main

#ifdef __SLANG__
__import gh_160;
#endif

vec4 main(VS_OUT vOut) : SV_TARGET
{
	float3 color = float3(1,0,0);

    vec4 finalColor = vec4(color, 1.f);
    return finalColor;
}