Home
last modified time | relevance | path

Searched refs:SkV4 (Results 1 – 18 of 18) sorted by relevance

/external/skia/include/core/
DSkM44.h93 struct SK_API SkV4 { struct
96 bool operator==(const SkV4& v) const { argument
99 bool operator!=(const SkV4& v) const { return !(*this == v); }
101 SkV4 operator-() const { return {-x, -y, -z, -w}; }
102 SkV4 operator+(const SkV4& v) const { return { x + v.x, y + v.y, z + v.z, w + v.w }; }
103 SkV4 operator-(const SkV4& v) const { return { x - v.x, y - v.y, z - v.z, w - v.w }; }
105 SkV4 operator*(const SkV4& v) const {
108 friend SkV4 operator*(const SkV4& v, SkScalar s) {
111 friend SkV4 operator*(SkScalar s, const SkV4& v) { return v*s; }
179 static SkM44 Rows(const SkV4& r0, const SkV4& r1, const SkV4& r2, const SkV4& r3) { in Rows()
[all …]
/external/skia/tests/
DM44Test.cpp91 SkV4 d = m.map(4, 3, 2, 1); in DEF_TEST()
92 REPORTER_ASSERT(reporter, (d == SkV4{11, 8, 7, 1})); in DEF_TEST()
101 SkV4 r0 = m.row(0), in DEF_TEST()
106 REPORTER_ASSERT(reporter, (r0 == SkV4{ 1, 2, 3, 4})); in DEF_TEST()
107 REPORTER_ASSERT(reporter, (r1 == SkV4{ 5, 6, 7, 8})); in DEF_TEST()
108 REPORTER_ASSERT(reporter, (r2 == SkV4{ 9, 10, 11, 12})); in DEF_TEST()
109 REPORTER_ASSERT(reporter, (r3 == SkV4{13, 14, 15, 16})); in DEF_TEST()
113 SkV4 c0 = m.col(0), in DEF_TEST()
118 REPORTER_ASSERT(reporter, (c0 == SkV4{1, 5, 9, 13})); in DEF_TEST()
119 REPORTER_ASSERT(reporter, (c1 == SkV4{2, 6, 10, 14})); in DEF_TEST()
[all …]
DSkSLTest.cpp58 set_uniform(&builder, "colorBlack", SkV4{0, 0, 0, 1}); in test_one_permutation()
59 set_uniform(&builder, "colorRed", SkV4{1, 0, 0, 1}); in test_one_permutation()
60 set_uniform(&builder, "colorGreen", SkV4{0, 1, 0, 1}); in test_one_permutation()
61 set_uniform(&builder, "colorBlue", SkV4{0, 0, 1, 1}); in test_one_permutation()
62 set_uniform(&builder, "colorWhite", SkV4{1, 1, 1, 1}); in test_one_permutation()
63 set_uniform(&builder, "testInputs", SkV4{-1.25, 0, 0.75, 2.25}); in test_one_permutation()
/external/skia/src/gpu/effects/generated/
DGrArithmeticProcessor.h23 const SkV4& k, in Make()
31 SkV4 k;
37 SkV4 k, in GrArithmeticProcessor()
DGrColorMatrixFragmentProcessor.h68 SkV4 v4 = {matrix[4], matrix[9], matrix[14], matrix[19]}; in Make()
76 SkV4 v;
84 SkV4 v, in GrColorMatrixFragmentProcessor()
DGrColorMatrixFragmentProcessor.cpp82 const SkV4& vValue = _outer.v; in onSetData()
90 SkV4 vPrev = SkV4{SK_FloatNaN, SK_FloatNaN, SK_FloatNaN, SK_FloatNaN};
DGrArithmeticProcessor.cpp98 SkV4 k; in TestCreate()
/external/skia/src/gpu/effects/
DGrArithmeticProcessor.fp10 layout(ctype=SkV4) in uniform float4 k;
33 const SkV4& k, bool enforcePMColor) {
40 SkV4 k;
DGrColorMatrixFragmentProcessor.fp10 layout(ctype=SkV4, tracked) in uniform half4 v;
74 SkV4 v4 = {matrix[4], matrix[9], matrix[14], matrix[19]};
/external/skia/bench/
DMatrix44Bench.cpp119 SkV4 v = {1, 2, 3, 4}; in performTest()
125 SkV4 fV;
/external/skia/tools/viewer/
DSkSLSlide.h53 SkV4 fMousePos;
/external/skia/src/core/
DSkColorFilter_Matrix.cpp168 struct { SkM44 m; SkV4 b; } uniforms; in MakeMatrix()
193 uniforms.b = SkV4{array[4], array[9], array[14], array[19]}; in MakeMatrix()
DSkM44.cpp129 SkV4 SkM44::map(float x, float y, float z, float w) const { in map()
135 SkV4 v; in map()
394 static SkV4 v4(SkV3 v, SkScalar w) { return {v.x, v.y, v.z, w}; } in v4()
/external/skia/gm/
Druntimeshader.cpp209 builder.uniform("in_colors0") = SkV4{1, 0, 0, 1}; in onDraw()
210 builder.uniform("in_colors1") = SkV4{0, 1, 0, 1}; in onDraw()
452 builder.uniform("derivatives") = SkV4{d*dx, -c*dy, -b*dx, a*dy}; in drawSuperRRect()
Dcrbug_224618.cpp66 SkV4 axisAngles[6] = { in onDraw()
/external/skia/src/effects/imagefilters/
DSkArithmeticImageFilter.cpp68 SkV4 fK;
141 void arith_span(const SkV4& k, SkPMColor dst[], const SkPMColor src[], int count) { in arith_span()
160 template<bool EnforcePMColor> void arith_transparent(const SkV4& k, SkPMColor dst[], int count) { in arith_transparent()
/external/skia/tools/debugger/
DJsonWriteBuffer.cpp147 SkV4 v = matrix.row(r); in write()
/external/skia/src/shaders/
DSkImageShader.cpp903 SkV4 r = weights.row(row); in onProgram()