szeged / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
45 stars 7 forks source link

Refactor render passes part 1 #312

Closed zakorgy closed 4 years ago

zakorgy commented 4 years ago

We have a begin_render_pass and end_render_pass for each draw/clear_attachments call, which isn't a performance wise solution. This PR is a first step to change this.

For now we issue a begin and end in renderer.rs explicitly in places where it's needed. The next step would be one begin and one end call per WR RenderPass.

For this the following needs to be addressed:


This change is Reviewable