Shader_Minifier icon indicating copy to clipboard operation
Shader_Minifier copied to clipboard

Variable inlining with reassignment

Open laurentlb opened this issue 1 year ago • 1 comments
trafficstars

Input:

float foo(float x) {
  float color = 0.;
  color=2.;
  return color/4.;
}

Current output:

float foo(float x)
{
  x=2.;
  return x/4.;
}

laurentlb avatar Aug 22 '24 22:08 laurentlb