Skip to content
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

Add fragment shader effect support. #17980

Open
kkwpsv opened this issue Jan 16, 2025 · 1 comment
Open

Add fragment shader effect support. #17980

kkwpsv opened this issue Jan 16, 2025 · 1 comment

Comments

@kkwpsv
Copy link
Contributor

kkwpsv commented Jan 16, 2025

Is your feature request related to a problem? Please describe.

I want to use fragment shader effects and animations in Avalonia, like ShaderEffect in WPF.

Describe the solution you'd like

Now, we mainly use Skia for rendering. It has SKSL, which can be used for shader effect.

Describe alternatives you've considered

Use GLSL or others. But it is difficult to integrate into the current rendering pipeline of Avalonia.
And, different underlying rendering methods like vulkan or opengl require the use of different rendering languages. This is not good for cross-platform.

Additional context

I have integrated the SKSL effect into Avalonia. I will submit a draft PR.
It requires a SkiaSharp change.
And I don't have a good design for Uniform-related APIs. I need some advice.

@kkwpsv
Copy link
Contributor Author

kkwpsv commented Jan 16, 2025

Here is the draft PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant