mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
f54558e79d
Some external images must be sampled from by providing normalized UV coordinates to webrender, but currently webrender only supports unnormalized UVs. This patch adds a flag to webrender's external image API that specifies whether the UV coordinates supplied when the texture is locked are normalized or unnormalized. This flag is plumbed through webrender to the required locations. We then add support for taking normalized UVs as inputs to the brush_image and cs_scale shaders. The only other shader that can be used with external textures is the composite shader, which already supports normalized UVs. This does not change any behaviour, that will happen in the next patch in this series. Differential Revision: https://phabricator.services.mozilla.com/D220581 |
||
---|---|---|
.. | ||
common | ||
alpha_perf.rs | ||
animation.rs | ||
basic.rs | ||
blob.rs | ||
Cargo.toml | ||
document.rs | ||
iframe.rs | ||
image_resize.rs | ||
multiwindow.rs | ||
README.md | ||
scrolling.rs | ||
texture_cache_stress.rs | ||
yuv.rs |
Examples
This directory contains a collection of examples which uses the WebRender API.
To run an example e.g. basic
, try:
cargo run --bin basic