Skip to content
Snippets Groups Projects
Commit 89b0cefb authored by Niklas Haas's avatar Niklas Haas
Browse files

shaders/sampling: allow sampling arbitrary components

This replaces `int components` by a new `uint8_t component_mask`, which
is more flexible. I decided not to deprecate the original field, because
it doesn't really cause any harm to continue supporting, and in most
cases you don't need the flexibility provided by a mask, so it's just a
hassle.

Made for the sake of allowing us to more efficiently render sub-sampled
planes without needing to waste GPU time scaling unnecessary components
like luma.
parent 50fa6bc1
No related branches found
No related tags found
No related merge requests found
Pipeline #43152 passed with stages
in 8 minutes and 45 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment