Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.tx.overload.frag
1
2 Texture2D<float>  tf1;
3 Texture2D<float4> tf4;
4
5 RWTexture2D<float>  twf1;
6 RWTexture2D<float4> twf4;
7
8 float Func(Texture2D<float> DummyTex) { return 1.0f; }
9 float4 Func(Texture2D<float4> DummyTex) { return float4(0,0,0,0); }
10
11 float Func(RWTexture2D<float> DummyTex) { return 1.0f; }
12 float4 Func(RWTexture2D<float4> DummyTex) { return float4(0,0,0,0); }
13
14 float4 main() : SV_TARGET
15 {
16     return Func(tf1) + Func(tf4) + Func(twf1) + Func(twf4);
17 }