Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Move gaussian functions into the shader library #37037

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

bdero
Copy link
Member

@bdero bdero commented Oct 26, 2022

Remove the uniform refs from the gaussian functions and toss them into the shader lib.

In prep for rrect approximation improvements. Here's a sneak peak (the circles on the right are falling back to the regular gaussian blur for some reason, which currently looks sloppy with a high kernel size):

image

@bdero bdero self-assigned this Oct 26, 2022
Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm w/ question


#include <impeller/constants.glsl>

float IPGaussian(float x, float sigma) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the meaning of the IP prefix?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the C style namespacing of shader library functions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants