add constraints to compute shader