Home
last modified time | relevance | path

Searched refs:float2x2 (Results 1 – 25 of 44) sorted by relevance

12

/external/skia/resources/sksl/folding/
DMatrixFoldingES2.sksl6 ok = ok && (float2x2(float2(1.0, 0.0), float2(0.0, 1.0)) ==
7 float2x2(float2(1.0, 0.0), float2(0.0, 1.0)));
8 ok = ok && !(float2x2(float2(1.0, 0.0), float2(1.0, 1.0)) ==
9 float2x2(float2(1.0, 0.0), float2(0.0, 1.0)));
11 ok = ok && ( float2x2(1) == float2x2(1));
12 ok = ok && !( float2x2(1) == float2x2(0));
13 ok = ok && ( float2x2(-1) == -float2x2(1));
14 ok = ok && ( float2x2(0) == -float2x2(0));
15 ok = ok && (-float2x2(-1) == float2x2(1));
16 ok = ok && (-float2x2(0) == -float2x2(-0));
[all …]
/external/skia/tests/sksl/shared/
DMatrices.metal13 thread float2x2& operator*=(thread float2x2& left, thread const float2x2& right) {
19 float2x2 m1 = float2x2(float2(1.0, 2.0), float2(3.0, 4.0));
20 float2x2 m3 = m1;
21 float2x2 m4 = float2x2(1.0);
23 float2x2 m5 = float2x2(m1[0].x);
24 float2x2 m6 = float2x2(float2(1.0, 2.0), float2(3.0, 4.0));
34 float2x2 _2_m1 = float2x2(float2(1.0, 2.0), float2(3.0, 4.0));
35 float2x2 _4_m3 = _2_m1;
36 float2x2 _5_m4 = float2x2(1.0);
38 float2x2 _6_m5 = float2x2(_2_m1[0].x);
[all …]
DResizeMatrix.metal13 float2x2 float2x2_from_float3x3(float3x3 x0) {
14 return float2x2(float2(x0[0].xy), float2(x0[1].xy));
16 float2x2 float2x2_from_float4x4(float4x4 x0) {
17 return float2x2(float2(x0[0].xy), float2(x0[1].xy));
22 float3x3 float3x3_from_float2x2(float2x2 x0) {
33 float2x2 a = float2x2_from_float3x3(float3x3(1.0));
35 float2x2 b = float2x2_from_float4x4(float4x4(1.0));
39 float3x3 d = float3x3_from_float2x2(float2x2(1.0));
41 float4x4 e = float4x4_from_float3x3(float3x3_from_float2x2(float2x2(1.0)));
43 float2x2 f = float2x2_from_float3x3(float3x3_from_float4x4(float4x4(1.0)));
DFunctionReturnTypeMatch.metal13 thread bool operator==(const float2x2 left, const float2x2 right) {
17 thread bool operator!=(const float2x2 left, const float2x2 right) {
47 float2x2 returns_float2x2_f22() {
48 return float2x2(2.0);
68 float2x2 returns_half2x2_h22() {
69 return float2x2(2.0);
108 float2x2 x5 = float2x2(2.0);
115 float2x2 x12 = float2x2(2.0);
DMatrixEquality.metal7 float2x2 testMatrix2x2;
15 thread bool operator==(const float2x2 left, const float2x2 right) {
19 thread bool operator!=(const float2x2 left, const float2x2 right) {
35 _0_ok = _0_ok && _uniforms.testMatrix2x2 == float2x2(float2(1.0, 2.0), float2(3.0, 4.0));
37 _0_ok = _0_ok && _uniforms.testMatrix2x2 != float2x2(100.0);
DMatricesNonsquare.metal13 thread float2x2& operator*=(thread float2x2& left, thread const float2x2& right) {
33 float2x2 m22 = m32 * m23;
50 float2x2 _6_m22 = _2_m32 * _0_m23;
DOutParams.metal56 void out_half2x2_vh22(Uniforms _uniforms, thread float2x2& v);
57 void _skOutParamHelper7_out_half2x2_vh22(Uniforms _uniforms, thread float2x2& h2x2) {
58 float2x2 _var0;
87 void _skOutParamHelper12_out_half_vh(Uniforms _uniforms, thread float2x2& h2x2) {
164 void out_float2x2_vf22(Uniforms _uniforms, thread float2x2& v);
165 void _skOutParamHelper25_out_float2x2_vf22(Uniforms _uniforms, thread float2x2& f2x2) {
166 float2x2 _var0;
183 void _skOutParamHelper28_out_float_vf(Uniforms _uniforms, thread float2x2& f2x2) {
237 void out_half2x2_vh22(Uniforms _uniforms, thread float2x2& v) {
238 v = float2x2(_uniforms.colorWhite.x);
[all …]
DOutParamsNoInline.metal56 void out_half2x2_vh22(Uniforms _uniforms, thread float2x2& v);
57 void _skOutParamHelper7_out_half2x2_vh22(Uniforms _uniforms, thread float2x2& h2x2) {
58 float2x2 _var0;
87 void _skOutParamHelper12_out_half_vh(Uniforms _uniforms, thread float2x2& h2x2) {
164 void out_float2x2_vf22(Uniforms _uniforms, thread float2x2& v);
165 void _skOutParamHelper25_out_float2x2_vf22(Uniforms _uniforms, thread float2x2& f2x2) {
166 float2x2 _var0;
183 void _skOutParamHelper28_out_float_vf(Uniforms _uniforms, thread float2x2& f2x2) {
237 void out_half2x2_vh22(Uniforms _uniforms, thread float2x2& v) {
238 v = float2x2(_uniforms.colorWhite.x);
[all …]
DFunctionArgTypeMatch.metal23 bool takes_float2x2_bf22(float2x2 x) {
44 bool takes_half2x2_bh22(float2x2 x) {
80float2x2(2.0))) && takes_float3x3_bf33(float3x3(3.0))) && takes_float4x4_bf44(float4x4(4.0))) && t…
/external/skia/resources/sksl/shared/
DMatrices.sksl7 float2x2 m1 = float2x2(float4(1, 2, 3, 4));
8 float2x2 m2 = float2x2(float4(0));
9 float2x2 m3 = float2x2(m1);
10 float2x2 m4 = float2x2(1);
12 float2x2 m5 = float2x2(m1[0][0]);
13 float2x2 m6 = float2x2(1, 2, 3, 4);
15 float2x2 m7 = float2x2(5, float3(6, 7, 8));
DResizeMatrix.sksl5 float2x2 a = float2x2(float3x3(1)); result += a[0][0];
6 float2x2 b = float2x2(float4x4(1)); result += b[0][0];
8 float3x3 d = float3x3(float2x2(1)); result += d[0][0];
9 float4x4 e = float4x4(float3x3(float2x2(1))); result += e[0][0];
10 float2x2 f = float2x2(float3x3(float4x4(1))); result += f[0][0];
DFunctionReturnTypeMatch.sksl7 float2x2 returns_float2x2() { return float2x2(2); }
31 float2x2 x5 = returns_float2x2();
/external/skia/tests/sksl/errors/
DBitShiftFloatMatrix.glsl3 error: 5: type mismatch: '>>=' cannot operate on 'float2x2', 'int'
4 error: 6: type mismatch: '<<=' cannot operate on 'float2x2', 'int'
5 error: 7: type mismatch: '&=' cannot operate on 'float2x2', 'int'
6 error: 8: type mismatch: '|=' cannot operate on 'float2x2', 'int'
7 error: 9: type mismatch: '^=' cannot operate on 'float2x2', 'int'
8 error: 11: type mismatch: '>>' cannot operate on 'float2x2', 'int'
9 error: 12: type mismatch: '<<' cannot operate on 'float2x2', 'int'
10 error: 13: type mismatch: '&' cannot operate on 'float2x2', 'int'
11 error: 14: type mismatch: '|' cannot operate on 'float2x2', 'int'
12 error: 15: type mismatch: '^' cannot operate on 'float2x2', 'int'
DConstructorTypeMismatch.glsl3 error: 5: expected 'int', but found 'float2x2'
6 error: 8: 'Foo' is not a valid parameter to 'float2x2' constructor
7 error: 9: '<INVALID>' is not a valid parameter to 'float2x2' constructor
8 error: 10: '<INVALID>' is not a valid parameter to 'float2x2' constructor
/external/skia/resources/sksl/errors/
DConstructorTypeMismatch.sksl5 void construct_struct_from_float2x2() { Foo x = Foo(float2x2(0)); }
8 void construct_float2x2_from_struct() { float2x2 x = float2x2(foo); }
9 void construct_float2x2_from_type() { float2x2 x = float2x2(int); }
10 void construct_float2x2_from_function() { float2x2 x = float2x2(sqrt); }
DSwizzleMatrix.sksl2 float2x2 x = float2x2(1);
/external/deqp-deps/glslang/Test/
Dhlsl.type.type.conversion.valid.frag26 float4 var43 = float2x2(zeros4);
27 float2x2 var52 = float(zeros1);
28 float2x2 var55 = float4(zeros4);
29 float2x2 var56 = float2x2(zeros4);
49 float var4 = float2x2(zeros4);// warning X3206: implicit truncation of vector type
61 float2x2 var57 = float2x3(zeros6);// warning X3206: implicit truncation of vector type
62 float2x2 var58 = float2x4(zeros8);// warning X3206: implicit truncation of vector type
63 float2x2 var59 = float3x2(zeros6);// warning X3206: implicit truncation of vector type
64 float2x2 var60 = float3x3(zeros9);// warning X3206: implicit truncation of vector type
65 float2x2 var61 = float3x4(zeros12);// warning X3206: implicit truncation of vector type
[all …]
Dhlsl.type.type.conversion.all.frag26 float4 var43 = float2x2(zeros4);
27 float2x2 var52 = float(zeros1);
28 float2x2 var55 = float4(zeros4);
29 float2x2 var56 = float2x2(zeros4);
49 float var4 = float2x2(zeros4);// warning X3206: implicit truncation of vector type
61 float2x2 var57 = float2x3(zeros6);// warning X3206: implicit truncation of vector type
62 float2x2 var58 = float2x4(zeros8);// warning X3206: implicit truncation of vector type
63 float2x2 var59 = float3x2(zeros6);// warning X3206: implicit truncation of vector type
64 float2x2 var60 = float3x3(zeros9);// warning X3206: implicit truncation of vector type
65 float2x2 var61 = float3x4(zeros12);// warning X3206: implicit truncation of vector type
[all …]
Dhlsl.intrinsics.vert330 float2x2 VertexShaderFunction2x2(float2x2 inF0, float2x2 inF1, float2x2 inF2)
336 return float2x2(2,2,2,2);
371 float2x2 inFM0, float2x2 inFM1)
373 TESTGENMUL(float, float2, float2x2);
410 float2x2 r13 = mul(inFM2x3, inFM3x2);
/external/skia/tests/sksl/metal/
DOutParams.metal91 void out_half2x2_vh22(thread float2x2& v);
92 void _skOutParamHelper12_out_half2x2_vh22(thread float2x2& h2x2) {
93 float2x2 _var0;
122 void _skOutParamHelper17_out_half2_vh2(thread float2x2& h2x2) {
193 void out_float2x2_vf22(thread float2x2& v);
194 void _skOutParamHelper29_out_float2x2_vf22(thread float2x2& f2x2) {
195 float2x2 _var0;
212 void _skOutParamHelper32_out_float_vf(thread float2x2& f2x2) {
271 void out_half2x2_vh22(thread float2x2& v) {
272 v = float2x2(2.0);
[all …]
DCastHalf4ToMat2x2.metal12 float2x2 m1 = float2x2(float2(1.0, 2.0), float2(3.0, 4.0));
DCastMat2x2ToMat3x3.metal9 float3x3 float3x3_from_float2x2(float2x2 x0) {
16 float3x3 b = float3x3_from_float2x2(float2x2(1.0));
/external/skia/resources/sksl/fp/
DGrGrSLTypesAreSupported.fp6 float2x2 test_f2x2(float2x2 a) { for (;;) { return a; } }
14 , test_f2x2(float2x2(1))[0]
DGrFunctionArgTypes.fp5 bool takes_float_matrix(float2x2 m2, float3x3 m3, float4x4 m4) { return true; }
13 takes_float_matrix(float2x2(2), float3x3(3), float4x4(4)) &&
/external/skia/resources/sksl/glsl/
DTypePrecision.sksl7 float2x2 f22 = float2x2(1, 2, 3, 4);

12