gecko-dev/gfx/wr/webrender
Glenn Watson 7b751b5e60 Bug 1794949 - Support deferred render task information in GPUBuffer r=gfx-reviewers,lsalzman
When building the GPUBuffer during the prepare pass, we want to be
able to refer to the UV rect (and other information) about images
and render tasks. However, we don't know this information until
after the resource cache block that occurs after prepare (waiting
for blob / glyph worker threads to complete).

Previously, we would defer these queries until batching and then
reference these via a GPU cache address in the instances, which
is complicated and inefficient (making instances larger than they
need to be).

With this change, GPUBuffer supports recording "patch" locations in
the buffer that UV rects should be added. After the render task
graph is built, the GPUBuffer can resolve and patch those locations,
meaning that batching is much simpler (and reducing the number of
indirect fetches required in vertex shaders).

Differential Revision: https://phabricator.services.mozilla.com/D159236
2022-10-13 04:25:18 +00:00
..
doc
res Bug 1790730 - Add basic infrastructure for gpu buffer texture. r=gfx-reviewers,nical 2022-09-18 22:21:13 +00:00
src Bug 1794949 - Support deferred render task information in GPUBuffer r=gfx-reviewers,lsalzman 2022-10-13 04:25:18 +00:00
tests
build.rs
Cargo.toml Bug 1793786 - Update Glean version to 51.4.0 r=chutten,supply-chain-reviewers,webdriver-reviewers 2022-10-07 20:19:49 +00:00