Flexible Shader Loops