1 2Texture2D<float> tf1; 3Texture2D<float4> tf4; 4 5RWTexture2D<float> twf1; 6RWTexture2D<float4> twf4; 7 8float Func(Texture2D<float> DummyTex) { return 1.0f; } 9float4 Func(Texture2D<float4> DummyTex) { return float4(0,0,0,0); } 10 11float Func(RWTexture2D<float> DummyTex) { return 1.0f; } 12float4 Func(RWTexture2D<float4> DummyTex) { return float4(0,0,0,0); } 13 14float4 main() : SV_TARGET 15{ 16 return Func(tf1) + Func(tf4) + Func(twf1) + Func(twf4); 17} 18