// RUN: %dxc -E main -T ps_6_0 %s

RWBuffer<min16int3> uav1 : register(u3);

float3 main(uint a : A, uint b : B) : SV_Target
{
  int3 r = 0;
  uint status;
  r += uav1[b];
  r += uav1.Load(a);
  uav1.Load(b, status); r += status;
  r += uav1.Load(a, status); r += status;
  uav1[b] = (min16int3)r;
  return r;
}
