SKIP: INVALID

RWByteAddressBuffer prevent_dce : register(u0);

float3 subgroupShuffle_1f664c() {
  float3 res = WaveReadLaneAt((1.0f).xxx, 1u);
  return res;
}

void fragment_main() {
  prevent_dce.Store3(0u, asuint(subgroupShuffle_1f664c()));
  return;
}

[numthreads(1, 1, 1)]
void compute_main() {
  prevent_dce.Store3(0u, asuint(subgroupShuffle_1f664c()));
  return;
}
FXC validation failure:
<scrubbed_path>(4,16-45): error X3004: undeclared identifier 'WaveReadLaneAt'


tint executable returned error: exit status 1
