blob: 5918e13de3419c68e67b5bc160de331f5ceda5d5 [file] [log] [blame] [raw]
kernel void GenerateNoise(float base,
float fine,
global float* rands,
int length)
{
int gid = get_global_id(0);
if (gid >= length) {
return;
}
rands[gid] = base * gid + fine / (base + gid) + 1 / gid;
}