| 123456789101112131415161718192021 |
- // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
- // CHECK: main
- float4 Tex2D(Texture2D<float4> t,
- SamplerState s, float2 c) {
- return t.Sample(s, c);
- }
- SamplerState g_ss;
- Texture2D<float4> g_texture[6];
- float4 main(float2 c: T) : SV_Target {
- Texture2D<float4> texture;
- if (c.x>0)
- texture = g_texture[0];
- else
- texture = g_texture[2];
- return Tex2D(texture, g_ss, c);
- }
|