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

[gfx] Rewrite the graphics stack to support other libraries #34

Open
1 of 5 tasks
usadson opened this issue Oct 1, 2023 · 0 comments
Open
1 of 5 tasks

[gfx] Rewrite the graphics stack to support other libraries #34

usadson opened this issue Oct 1, 2023 · 0 comments
Labels
🎨 graphics Related to the rendering crate

Comments

@usadson
Copy link
Owner

usadson commented Oct 1, 2023

Support Direct2D gives the project a big advantage, as it isn't needed to write the graphics code first before implementing an SVG/CSS feature. After writing it using the DirectX-stack, we can then port that code over to support a wide range of devices using the wgpu stack and e.g. lyon.

This effort consists of a few different tasks:

  • Port the font-specific stuff over to the main retina-gfx crate
  • Move the wgpu-specific parts over to another crate from retina-gfx
  • Make the retina-gfx APIs agnostic to DX/wgpu
  • Initialize the retina-gfx API using DX on Windows and wgpu on other platforms

Some optional, nice-to-have's are:

  • Identify resources (images, fonts, etc) by an identifier instead of a dynamic trait
@usadson usadson added the 🎨 graphics Related to the rendering crate label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 graphics Related to the rendering crate
Projects
None yet
Development

No branches or pull requests

1 participant