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 Bug 1897100 - Fix new dead code warnings from rustc 1.78 in webrender and wrench. CLOSED TREE 2024-05-16 09:54:28 +00:00
alpha_perf.rs
animation.rs
basic.rs
blob.rs Bug 1903977 - Add a blob tile pool. r=gfx-reviewers,gw 2024-08-07 18:16:58 +00:00
Cargo.toml Bug 1904735 - Replace deprecated default_features with default-features. r=firefox-build-system-reviewers,gfx-reviewers,application-update-reviewers,nalexander,gw 2024-06-27 03:07:14 +00:00
document.rs
iframe.rs
image_resize.rs
multiwindow.rs
README.md
scrolling.rs Bug 1874199 - Add support for animation properties on StickyFrame spatial nodes. r=gw 2024-05-02 02:49:21 +00:00
texture_cache_stress.rs Bug 1913568 - Add support for normalized UV coordinates to webrender. r=gfx-reviewers,nical 2024-09-09 14:06:26 +00:00
yuv.rs Bug 1913568 - Add support for normalized UV coordinates to webrender. r=gfx-reviewers,nical 2024-09-09 14:06:26 +00:00

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