iced icon indicating copy to clipboard operation
iced copied to clipboard

Let the user of `iced_wgpu::Renderer` manually finish/recall the staging belt

Open Azorlogh opened this issue 1 year ago • 5 comments

The iced integration for bevy needs to let Bevy take care of submitting the queue, so it can't call Renderer::present. But it still needs to call finish/recall on the staging belt. This adds two methods Renderer::staging_belt_finish and Renderer::staging_belt_recall to let the user do it manually.

Azorlogh avatar Dec 08 '24 03:12 Azorlogh

Bevy 0.15 support has been completed in tasgon/bevy_iced#34, and is blocked by this PR. What is the status of this PR? Are there any changes needed to get this through?

srussvoll avatar Mar 17 '25 06:03 srussvoll

I updated the PR. Since recent changes the only thing left is the ability to manually finish & recall the staging belt.

Azorlogh avatar Apr 08 '25 22:04 Azorlogh

Actually there is a second change needed :sweat_smile: We need to be able to call Renderer::draw too. I made it public

Azorlogh avatar Apr 08 '25 22:04 Azorlogh

Why does present not work exactly? Why does Bevy need to control all Queue submissions?

hecrj avatar Nov 18 '25 23:11 hecrj

@hecrj In order to integrate to bevy's render graph, we need to append our commands to the Queue it provides us. It only submit the queue after the whole graph finished running.
If iced submits the work to its own queue, then everything else will be drawn on top of its UI

Azorlogh avatar Nov 21 '25 23:11 Azorlogh