blob: 0dfb59dc0a9c1e8176cbad8775bbaa5a35ed08e0 [file] [log] [blame]
void set_float4(inout float4 vec, int idx, float val) {
vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec;
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
float foo() {
const int oob = 99;
const float b = (0.0f).xxxx[min(uint(oob), 3u)];
float4 v = float4(0.0f, 0.0f, 0.0f, 0.0f);
set_float4(v, min(uint(oob), 3u), b);
return b;
}