-
-
Notifications
You must be signed in to change notification settings - Fork 77
Draw rounded rectangles using shader #2463
New issue
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
Conversation
zeebok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good! Might be a good idea to have UX pixel peep and ensure the radius matches?
|
I don't think this is necessary as in many cases (e.g. Tooltip) the border radius didn't align with our stylesheet |
leolost2605
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't say much about the shader code and can't test right now but apart from that LGTM :) 🚀⚡
Significantly optimizes our drawing code by using shader to draw rounded rectangles. Multitasking view gets a huge performance boost by not manually checking/drawing ActiveShape since it's now done on GPU.
The shaders code looks weird but I just couldn't make it produce consistent results. I played with offsets and this configuration gives the most symmetrical and sharp results