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

Persistently map GPU cache data #271

Closed kvark closed 5 years ago

kvark commented 5 years ago

Essentially, GPU cache could be a linear texture that is both CPU and GPU visible (no coherency needed). WR already knows which parts are used for what, so it can manage updates easily.

This could be an optimization - need to implement and benchmark.

kvark commented 5 years ago

An alternative representation would be to have a CPU-visible buffer, and the shaders would fetch from a texel buffer view made of it.