daa573eb91
GLSL (and thus SkSL) is flexible about the input parameters to a matrix constructor. You can mix vectors and scalars freely, and it will populate them into your matrix as if it was a flat list of scalars. Metal does not natively support this, and requires the proper number of floatNs to be passed in. However, the Metal code generator will now emit constructor helper functions that will fix this up automatically. Additionally, this CL simplifies the Metal codegen for single-scalar matrix construction. This should create a matrix with the passed-in scalar running along the matrix diagonal. The Metal codegen previously emitted a helper function to do this work on our behalf. However, that's not necessary; Metal already contains a single-argument matrix constructor that will do this work automatically for us. Change-Id: I76901bfe167502797aa4cb98d0e8986d9ebc51e5 Bug: skia:10280 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292477 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.