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

Integration with existing wgpu projects #183

Merged
merged 12 commits into from
Feb 10, 2020
Merged

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Feb 9, 2020

Hello triangle

This PR enhances the flexibility of iced_wgpu by allowing a Renderer to draw to any given TextureView while reusing an existing Device and CommandEncoder. Therefore, integrating iced with existing wgpu projects is now possible! 🎉

I have created an example (integration) which showcases how this can be achieved with iced_winit and iced_wgpu. It is important to note that the process should be the same with a different shell and/or renderer:

  1. Initialize data structures
  2. Map shell events to iced events
  3. Process iced events
  4. Update the user interface
  5. Draw the user interface

This process, although very flexible, is currently not as straightforward as I would like it to be. However, I prefer to wait, see how folks implement it and gather more use cases before designing further abstractions.

@hecrj hecrj added the feature New feature or request label Feb 9, 2020
@hecrj hecrj added this to the 0.1.0 milestone Feb 9, 2020
@hecrj hecrj self-assigned this Feb 9, 2020
@hecrj hecrj merged commit 5d16f43 into master Feb 10, 2020
@hecrj hecrj deleted the feature/wgpu-integration branch February 10, 2020 18:49
@hecrj hecrj mentioned this pull request Feb 20, 2020
@parasyte
Copy link

This might actually mostly fit my requirements! I'll give it a try. :)

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

Successfully merging this pull request may close these issues.

2 participants