/third_party/skia/tests/ |
H A D | SkVxTest.cpp | 13 using float4 = skvx::Vec<4,float>; 39 static_assert(sizeof(float4) == 16, ""); in DEF_TEST() 47 int4 mask = float4{1,2,3,4} < float4{1,2,4,8}; in DEF_TEST() 68 REPORTER_ASSERT(r, min(float4{1,2,3,4}) == 1); in DEF_TEST() 69 REPORTER_ASSERT(r, max(float4{1,2,3,4}) == 4); in DEF_TEST() 83 REPORTER_ASSERT(r, all(if_then_else(float4{1,2,3,2} <= float4{2,2,2,2}, float4(42), float4(4 in DEF_TEST() [all...] |
/third_party/skia/src/gpu/tessellate/ |
H A D | PatchWriter.cpp | 34 float4 T = float4(1,1,2,2) / numPatches; in chopAndWriteQuads() 35 float4 ab = mix(p0.xyxy(), p1.xyxy(), T); in chopAndWriteQuads() 36 float4 bc = mix(p1.xyxy(), p2.xyxy(), T); in chopAndWriteQuads() 37 float4 abc = mix(ab, bc, T); in chopAndWriteQuads() 39 float4 middle = mix(ab, bc, mix(T, T.zwxy(), 2/3.f)); in chopAndWriteQuads() 77 float4 h0 = float4(p0,1,1); in chopAndWriteConics() 78 float4 h1 = float4(p in chopAndWriteConics() [all...] |
H A D | AffineMatrix.h | 28 // Duplicate the matrix in float4.lo and float4.hi so we can map two points at once. in operator =() 35 SK_ALWAYS_INLINE float4 map2Points(float4 p0p1) const { in map2Points() 39 SK_ALWAYS_INLINE float4 map2Points(const SkPoint pts[2]) const { in map2Points() 40 return this->map2Points(float4::Load(pts)); in map2Points() 43 SK_ALWAYS_INLINE float4 map2Points(SkPoint p0, SkPoint p1) const { in map2Points() 44 return this->map2Points(float4(skvx::bit_pun<float2>(p0), skvx::bit_pun<float2>(p1))); in map2Points() 60 float4 fScale; 61 float4 fSke [all...] |
H A D | WangsFormula.h | 66 using float4 = skvx::Vec<4, float>; 98 AI float4 operator()(float4 vectors) const { in operator ()() 113 float4 fScaleXYXY; 114 float4 fSkewXYXY; 150 float4 p01 = float4::Load(pts); in cubic_pow4() 151 float4 p12 = float4::Load(pts + 1); in cubic_pow4() 152 float4 p2 in cubic_pow4() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | Constants.hpp | 31 float4 uvWeight[17]; 32 float4 uvStart[17]; 78 float4 sampleX[4][16]; 79 float4 sampleY[4][16]; 80 float4 weight[16]; 86 float4 X[4]; 87 float4 Y[4]; 99 float4 unscaleByte; 100 float4 unscaleSByte; 101 float4 unscaleShor [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | Initialize.cpp | 30 TType *float4 = new TType(EbtFloat, 4); in InsertBuiltInFunctions() local 120 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpModf, float4, "modf", float4, outFloat4); in InsertBuiltInFunctions() 173 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat4, "outerProduct", float4, float4); in InsertBuiltInFunctions() 176 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2x4, "outerProduct", float4, float2); in InsertBuiltInFunctions() 177 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat4x2, "outerProduct", float2, float4); in InsertBuiltInFunctions() 178 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat3x4, "outerProduct", float4, float3); in InsertBuiltInFunctions() 179 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat4x3, "outerProduct", float3, float4); in InsertBuiltInFunctions() 240 symbolTable.insertBuiltIn(ESSL1_BUILTINS, float4, "texture2 in InsertBuiltInFunctions() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | Constants.hpp | 33 float4 uvWeight[17]; 34 float4 uvStart[17]; 87 float4 sampleX[4][16]; 88 float4 sampleY[4][16]; 89 float4 weight[16]; 95 float4 X[4]; 96 float4 Y[4]; 136 float4 unscaleByte; 137 float4 unscaleSByte; 138 float4 unscaleShor [all...] |
H A D | Constants.cpp | 111 static const float4 uvWeight[17] = { in Constants() 131 static const float4 uvStart[17] = { in Constants() 290 const float4 X[4] = { in Constants() 291 float4(SampleLocationsX[0]), in Constants() 292 float4(SampleLocationsX[1]), in Constants() 293 float4(SampleLocationsX[2]), in Constants() 294 float4(SampleLocationsX[3]), in Constants() 297 const float4 Y[4] = { in Constants() 298 float4(SampleLocationsY[0]), in Constants() 299 float4(SampleLocations in Constants() [all...] |
/third_party/skia/experimental/graphite/src/geom/ |
H A D | IntersectionTree.cpp | 92 float4 comp = Rect::ComplementRect(rect).fVals; 94 float4 l = float4::Load(fLefts + i); 95 float4 t = float4::Load(fTops + i); 96 float4 nr = float4::Load(fNegRights + i); 97 float4 nb = float4::Load(fNegBots + i); 131 return Rect::FromVals(float4(fLeft [all...] |
H A D | Rect.h | 32 AI Rect(const SkRect& r) : fVals(NegateBotRight(float4::Load(r.asScalars()))) {} in Rect() 49 AI static Rect FromVals(float4 vals) { // vals.zw must already be negated. in FromVals() 55 return FromVals(float4{SK_FloatNegativeInfinity}); in Infinite() 59 return FromVals(float4{SK_FloatInfinity}); in InfiniteInverted() 65 AI const float4& vals() const { return fVals; } // [left, top, -right, -bot]. in vals() 66 AI float4& vals() { return fVals; } // [left, top, -right, -bot]. in vals() 76 AI float4 ltrb() const { return NegateBotRight(fVals); } in ltrb() 99 float4 p = fVals * float4(.5f, .5f, -.5f, -.5f); // == [l, t, r, b] * .5 in center() 112 float4 fVal in ComplementRect() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | VertexProcessor.hpp | 152 float4 transformT[12][4]; 153 float4 cameraTransformT[12][4]; 154 float4 normalTransformT[12][4]; 155 float4 textureTransform[8][4]; 157 float4 lightPosition[8]; 158 float4 lightAmbient[8]; 159 float4 lightSpecular[8]; 160 float4 lightDiffuse[8]; 161 float4 attenuationConstant[8]; 162 float4 attenuationLinea [all...] |
H A D | Polygon.hpp | 24 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon() 35 Polygon(const float4 *P, int n) in Polygon() 47 float4 B[16]; // Buffer for clipped vertices 48 const float4 *P[16][16]; // Pointers to clipped polygon's vertices
|
H A D | Clipper.cpp | 32 unsigned int Clipper::computeClipFlags(const float4 &v) in computeClipFlags() 86 const float4 **V = polygon.P[polygon.i]; in clipNear() 87 const float4 **T = polygon.P[polygon.i + 1]; in clipNear() 124 const float4 **V = polygon.P[polygon.i]; in clipFar() 125 const float4 **T = polygon.P[polygon.i + 1]; in clipFar() 162 const float4 **V = polygon.P[polygon.i]; in clipLeft() 163 const float4 **T = polygon.P[polygon.i + 1]; in clipLeft() 200 const float4 **V = polygon.P[polygon.i]; in clipRight() 201 const float4 **T = polygon.P[polygon.i + 1]; in clipRight() 238 const float4 ** in clipTop() [all...] |
H A D | Primitive.hpp | 32 float4 A; 33 float4 B; 34 float4 C; 42 float4 xQuad; 43 float4 yQuad;
|
H A D | Sampler.hpp | 28 float4 fWidth; 29 float4 fHeight; 30 float4 fDepth; 48 float4 widthHeightLOD; 49 float4 widthLOD; 50 float4 heightLOD; 51 float4 depthLOD; 54 float4 borderColorF[4];
|
H A D | Renderer.hpp | 134 float4 c[VERTEX_UNIFORM_VECTORS + 1]; // One extra for indices out of range, c[VERTEX_UNIFORM_VECTORS] = {0, 0, 0, 0} 148 float4 c[FRAGMENT_UNIFORM_VECTORS]; 178 float4 Wx16; 179 float4 Hx16; 180 float4 X0x16; 181 float4 Y0x16; 182 float4 XXXX; 183 float4 YYYY; 184 float4 halfPixelX; 185 float4 halfPixel [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
H A D | Polygon.hpp | 24 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon() 35 Polygon(const float4 *P, int n) in Polygon() 47 float4 B[16]; // Buffer for clipped vertices 48 const float4 *P[16][16]; // Pointers to clipped polygon's vertices
|
H A D | Primitive.hpp | 32 float4 A; 33 float4 B; 34 float4 C; 42 float4 xQuad; 43 float4 yQuad; 50 float4 zBias;
|
H A D | Renderer.hpp | 81 float4 WxF; 82 float4 HxF; 83 float4 X0xF; 84 float4 Y0xF; 85 float4 halfPixelX; 86 float4 halfPixelY; 111 float4 a2c0; 112 float4 a2c1; 113 float4 a2c2; 114 float4 a2c [all...] |
H A D | PixelProcessor.hpp | 147 float4 blendConstantF; // Unclamped for floating-point attachment formats. 148 float4 invBlendConstantF; // Unclamped for floating-point attachment formats. 149 float4 blendConstantU; // Clamped to [0,1] for unsigned fixed-point attachment formats. 150 float4 invBlendConstantU; // Clamped to [0,1] for unsigned fixed-point attachment formats. 151 float4 blendConstantS; // Clamped to [-1,1] for signed fixed-point attachment formats. 152 float4 invBlendConstantS; // Clamped to [-1,1] for signed fixed-point attachment formats. 160 void setBlendConstant(const float4 &blendConstant);
|
H A D | Clipper.cpp | 22 inline void clipEdge(sw::float4 &Vo, const sw::float4 &Vi, const sw::float4 &Vj, float di, float dj) in clipEdge() 34 const sw::float4 **V = polygon.P[polygon.i]; in clipNear() 35 const sw::float4 **T = polygon.P[polygon.i + 1]; in clipNear() 72 const sw::float4 **V = polygon.P[polygon.i]; in clipFar() 73 const sw::float4 **T = polygon.P[polygon.i + 1]; in clipFar() 110 const sw::float4 **V = polygon.P[polygon.i]; in clipLeft() 111 const sw::float4 **T = polygon.P[polygon.i + 1]; in clipLeft() 148 const sw::float4 ** in clipRight() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | Types.hpp | 103 ALIGN(16, struct float4 120 bool operator!=(const float4 &rhs) 125 bool operator==(const float4 &rhs) 131 inline float4 vector(float x, float y, float z, float w) in vector() 133 float4 v; in vector() 143 inline float4 replicate(float f) in replicate() 145 float4 v; in replicate()
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
H A D | eliminate_dead_functions_test.cpp | 215 OpSource HLSL 600 %5 "float4 foo() { in TEST_F() 218 float4 main(float4 color : COLOR) : SV_TARGET { in TEST_F() 285 OpSource HLSL 600 %5 "float4 foo() { in TEST_F() 288 float4 main(float4 color : COLOR) : SV_TARGET { in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
H A D | eliminate_dead_functions_test.cpp | 215 OpSource HLSL 600 %5 "float4 foo() { in TEST_F() 218 float4 main(float4 color : COLOR) : SV_TARGET { in TEST_F() 285 OpSource HLSL 600 %5 "float4 foo() { in TEST_F() 288 float4 main(float4 color : COLOR) : SV_TARGET { in TEST_F()
|
/third_party/spirv-tools/test/opt/ |
H A D | eliminate_dead_functions_test.cpp | 215 OpSource HLSL 600 %5 "float4 foo() { in TEST_F() 218 float4 main(float4 color : COLOR) : SV_TARGET { in TEST_F() 285 OpSource HLSL 600 %5 "float4 foo() { in TEST_F() 288 float4 main(float4 color : COLOR) : SV_TARGET { in TEST_F()
|