vulkan: Rewrite AA shaders to respect scale
authorBenjamin Otte <otte@redhat.com>
Sat, 13 May 2023 01:14:16 +0000 (03:14 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Jun 2023 17:42:01 +0000 (19:42 +0200)
commit87c9503293cf78eb93faeef3fe0af96516278cb0
tree0d08a10ed749338e37dd000ed30f83ad3d516ec0
parent76634cb68bdbfeccf62b4602e6578ad7135d4818
vulkan: Rewrite AA shaders to respect scale

The border and color shaders - the ones that do AA - now multiply their
coordinates by the scale factor, which gives them better rounding
capabilities.

This in particular improves the case where they are used in fractional
scaling situations, where the scale is defined at the root element.
gsk/vulkan/resources/border.frag
gsk/vulkan/resources/border.vert
gsk/vulkan/resources/clip.frag.glsl
gsk/vulkan/resources/color.frag
gsk/vulkan/resources/color.vert
gsk/vulkan/resources/rect.glsl
gsk/vulkan/resources/rounded-rect.glsl