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

Blit with shader to avoid breaking render passes #343

Closed zakorgy closed 4 years ago

zakorgy commented 4 years ago

This depends on https://github.com/szeged/webrender/pull/337. Also made some minor changes to not call begin_render_pass inside clear_target_rects


This change is Reviewable

zakorgy commented 4 years ago

@kvark I've also fixed that disturbing begin_render_pass logic as we discussed yesterday: collected the clears, removed the first render pass begin inside the if statement and execute them inside the second render pass: https://github.com/szeged/webrender/pull/343/commits/578c81b64ba1c3a1d695b5f3885767c16e58d6e9#diff-f5062b694b9fe53fc1757ed483d577d9R4330-R4396