Shader micro-optimizations