DescriptionUse unorm shorts for texture coordinates when rendering text.
There are a couple of reasons for this:
- Vulkan does not guarantee conversions from integral vertex attributes
to floating point shader variables
- This may be faster and more precise on some platforms, as it avoids
the aforementioned conversion and changes a multiply by a very small
value to a multiply by a medium-sized value.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1713693002
TBR=bsalomon@google.com
Committed: https://skia.googlesource.com/skia/+/e507ff0460f4f878214b9454fb5b9ab8d64d8063
Committed: https://skia.googlesource.com/skia/+/7023a00c35d904e4ccff09c377e9ba26abba6181
Patch Set 1 #
Total comments: 2
Patch Set 2 : Cache log2 of width and height #Patch Set 3 : Fix one maskformat #Patch Set 4 : Add highp #Patch Set 5 : Fix tabbing #
Messages
Total messages: 22 (12 generated)
|