We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input:
vec3 Segment(vec3 p, out float h) { h = 2.; return p; } vec3 meter4(vec2 uv, float value) { float dummy; return Segment(uv.xyy, dummy); } vec3 dash(vec2 uv) { vec3 color; color = vec3(1); color += meter4(uv, 1.); color += meter4(uv, 2.); return color; }
Current output:
vec3 Segment(vec3 p,out float h) { h=2.; return p; } vec3 meter4(vec2 uv,float value) { return Segment(uv.xyy,value); } vec3 dash(vec2 uv) { vec3 color=vec3(1); color+=meter4(uv,1.); return color+meter4(uv,2.); }
The function dash is not simplified as much as it should be. It appears that the out parameter in Segment disables those optimizations.
dash
out
Segment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Input:
Current output:
The function
dash
is not simplified as much as it should be. It appears that theout
parameter inSegment
disables those optimizations.The text was updated successfully, but these errors were encountered: