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

How do I convert glsl to hlsl? #239

Open
RyJeRT opened this issue May 18, 2024 · 3 comments
Open

How do I convert glsl to hlsl? #239

RyJeRT opened this issue May 18, 2024 · 3 comments

Comments

@RyJeRT
Copy link

RyJeRT commented May 18, 2024

I would like to convert glsl shaders to hlsl for the magpie program

@Tama47
Copy link
Contributor

Tama47 commented May 29, 2024

Doesn't Magpie already have Anime4K shaders?

@RyJeRT
Copy link
Author

RyJeRT commented May 29, 2024

not all of them

@Blinue
Copy link

Blinue commented May 30, 2024

Porting an mpv hook to a Magpie effect is challenging. Currently, the Anime4K shaders available in Magpie were manually ported, making it difficult to handle especially large shaders like UL and UUL. I see two potential solutions:

  1. Write a script to export the weights as a Magpie effect, similar to how they are exported as an mpv hook in this repository.
  2. Export the weights as ONNX. Magpie has a special version that supports this format.

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

No branches or pull requests

3 participants