// RUN: %dxc -E main -T ps_6_1 %s | FileCheck %s

// CHECK: Number of inputs: 8, outputs: 4
// CHECK: Outputs dependent on ViewId: { 0, 3 }
// CHECK: Inputs contributing to computation of Outputs:
// CHECK:   output 0 depends on inputs: { 0, 4, 7 }
// CHECK:   output 1 depends on inputs: { 1 }
// CHECK:   output 2 depends on inputs: { 2 }
// CHECK:   output 3 depends on inputs: { 0, 1, 2, 3, 4, 5, 6, 7 }

float4 main(float4 a : AAA, float4 b : BBB, uint viewid : SV_ViewId) : SV_Target
{
  float4 ret = a;
  ret.x = a.x + viewid + b.x * b.w;
  ret.w += dot(a, b) * viewid;
  return ret;
}
