gecko-dev/gfx/wr/examples
Jamie Nicol f54558e79d Bug 1913568 - Add support for normalized UV coordinates to webrender. r=gfx-reviewers,nical
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
2024-09-09 14:06:26 +00:00
..
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