Home
last modified time | relevance | path

Searched refs:int4 (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/third_party/skia/resources/sksl/folding/
DVectorVectorFolding.sksl71 ok = ok && (int4(int2(1), int2(2, 3)) + int4(5, 6, 7, 8)) == int4(6, 7, 9, 11);
72 ok = ok && (int4(8, int3(10)) - int4(1)) == int4(7, 9, 9, 9);
73 ok = ok && (int4(2) * int4(1, 2, 3, 4)) == int4(2, 4, 6, 8);
74 ok = ok && (int4(12) / int4(1, 2, 3, 4)) == int4(12, 6, 4, 3);
75 ok = ok && !(int4(1) == int4(2));
79 ok = ok && (int4(1) == int4(int2(1), int2(1)));
80 ok = ok && (int4(int3(1), 1) == int4(int2(1), int2(1)));
81 ok = ok && !(int4(int3(1), 1) == int4(int2(1), 1, 0));
83 ok = ok && !(int4(1) != int4(int2(1), int2(1)));
84 ok = ok && ( int4(1) == int4(1));
[all …]
DVectorScalarFolding.sksl109 int4 x = int4(int2(1), int2(2, 3)) + 5;
110 ok = ok && (x == int4(6, 6, 7, 8));
111 x = int4(8, int3(10)) - 1;
112 ok = ok && (x == int4(7, 9, 9, 9));
113 x = int4(int2(8), int2(9)) + 1;
114 ok = ok && (x == int4(9, 9, 10, 10));
116 ok = ok && (x == int4(6, 6, 6, 10));
118 ok = ok && (x == int4(3, 3, 6, 10));
121 x = (int4(12) / 2).yxwz;
122 ok = ok && (x == int4(6));
[all …]
/third_party/skia/third_party/externals/tint/test/expressions/swizzle/read/vec3/
Di32.wgsl.expected.hlsl53 int4 xxxx = P.v.xxxx;
54 int4 xxxy = P.v.xxxy;
55 int4 xxxz = P.v.xxxz;
56 int4 xxyx = P.v.xxyx;
57 int4 xxyy = P.v.xxyy;
58 int4 xxyz = P.v.xxyz;
59 int4 xxzx = P.v.xxzx;
60 int4 xxzy = P.v.xxzy;
61 int4 xxzz = P.v.xxzz;
62 int4 xyxx = P.v.xyxx;
[all …]
Di32.wgsl.expected.msl49 int4 xxxx = int3((*(tint_symbol)).v).xxxx;
50 int4 xxxy = int3((*(tint_symbol)).v).xxxy;
51 int4 xxxz = int3((*(tint_symbol)).v).xxxz;
52 int4 xxyx = int3((*(tint_symbol)).v).xxyx;
53 int4 xxyy = int3((*(tint_symbol)).v).xxyy;
54 int4 xxyz = int3((*(tint_symbol)).v).xxyz;
55 int4 xxzx = int3((*(tint_symbol)).v).xxzx;
56 int4 xxzy = int3((*(tint_symbol)).v).xxzy;
57 int4 xxzz = int3((*(tint_symbol)).v).xxzz;
58 int4 xyxx = int3((*(tint_symbol)).v).xyxx;
[all …]
/third_party/skia/third_party/externals/tint/test/expressions/swizzle/read/packed_vec3/
Di32.wgsl.expected.msl50 int4 xxxx = int3((*(tint_symbol)).v).xxxx;
51 int4 xxxy = int3((*(tint_symbol)).v).xxxy;
52 int4 xxxz = int3((*(tint_symbol)).v).xxxz;
53 int4 xxyx = int3((*(tint_symbol)).v).xxyx;
54 int4 xxyy = int3((*(tint_symbol)).v).xxyy;
55 int4 xxyz = int3((*(tint_symbol)).v).xxyz;
56 int4 xxzx = int3((*(tint_symbol)).v).xxzx;
57 int4 xxzy = int3((*(tint_symbol)).v).xxzy;
58 int4 xxzz = int3((*(tint_symbol)).v).xxzz;
59 int4 xyxx = int3((*(tint_symbol)).v).xyxx;
[all …]
Di32.wgsl.expected.hlsl51 int4 xxxx = asint(U[0].xyz).xxxx;
52 int4 xxxy = asint(U[0].xyz).xxxy;
53 int4 xxxz = asint(U[0].xyz).xxxz;
54 int4 xxyx = asint(U[0].xyz).xxyx;
55 int4 xxyy = asint(U[0].xyz).xxyy;
56 int4 xxyz = asint(U[0].xyz).xxyz;
57 int4 xxzx = asint(U[0].xyz).xxzx;
58 int4 xxzy = asint(U[0].xyz).xxzy;
59 int4 xxzz = asint(U[0].xyz).xxzz;
60 int4 xyxx = asint(U[0].xyz).xyxx;
[all …]
/third_party/glslang/Test/
Dhlsl.format.rwtexture.frag4 [[spv::format_rg32f]] RWTexture1D <int4> g_tTex1di4;
8 [[spv::format_r11fg11fb10f]] RWTexture2D <int4> g_tTex2di4;
12 [[spv::format_rgba16i]] [[spv::nonreadable]] RWTexture3D <int4> g_tTex3di4;
16 [[spv::format_rg32ui]] RWTexture1DArray <int4> g_tTex1di4a;
20 [[spv::format_r8ui]] RWTexture2DArray <int4> g_tTex2di4a;
23 [[spv::format_rgba8 ]] RWTexture2DArray<int4> g_tTex01;
24 [[spv::format_rg16f ]] RWTexture2DArray<int4> g_tTex02;
25 [[spv::format_r16f ]] RWTexture2DArray<int4> g_tTex03;
26 [[spv::format_rgb10a2 ]] RWTexture2DArray<int4> g_tTex04;
27 [[spv::format_rg16 ]] RWTexture2DArray<int4> g_tTex05;
[all …]
Dhlsl.params.default.frag1 uniform int4 ui4;
7 // int4 fn1(int4 p0) { return int4(1,2,3,4); }
9 int4 fn1(int4 p0, bool b1, bool b2 = false) {
13 int4 fn1(int4 p0,
14 int4 p1 : FOO = int4(-1,-2,-3, cia),
22 int4 fn2(int4 p0, int x = 3)
24 return int4(10,11,12,13);
27 int4 fn2(int4 p0, float x = sin(3.3)) // OK to have a const expression as a default value
29 return p0 + int4(20,21,22,23);
35 int4 main() : SV_Target0
[all …]
Dhlsl.params.default.negative.frag1 uniform int4 ui4;
7 int4 fn1(int4 p0) { return int4(1,2,3,4); }
9 int4 fn1(int4 p0, bool b1, bool b2 = false) {
13 int4 fn1(int4 p0,
14 int4 p1 : FOO = int4(-1,-2,-3, cia),
22 int4 fn2(int4 p0, int x = 3)
24 return int4(10,11,12,13);
27 int4 fn2(int4 p0, float x = ufvar) // ERROR: non-const expression
29 return p0 + int4(20,21,22,23);
36 int4 main() : SV_Target0
[all …]
Dhlsl.rw.bracket.frag4 RWTexture1D <int4> g_tTex1di4;
8 RWTexture2D <int4> g_tTex2di4;
12 RWTexture3D <int4> g_tTex3di4;
16 RWTexture1DArray <int4> g_tTex1di4a;
20 RWTexture2DArray <int4> g_tTex2di4a;
31 uniform int4 c4;
36 uniform int4 o4;
39 uniform int4 ui4;
42 int4 Fn1(in int4 x) { return x; }
46 void Fn2(out int4 x) { x = int4(0); }
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-hlsl/asm/comp/
Dbitcast_icmp.asm.comp6 …(16).x) < int4(_5.Load4(0)).x, int(_5.Load4(16).y) < int4(_5.Load4(0)).y, int(_5.Load4(16).z) < in…
7 …).x) <= int4(_5.Load4(0)).x, int(_5.Load4(16).y) <= int4(_5.Load4(0)).y, int(_5.Load4(16).z) <= in…
8 … < uint(int4(_5.Load4(0)).x), _5.Load4(16).y < uint(int4(_5.Load4(0)).y), _5.Load4(16).z < uint(in…
9 …= uint(int4(_5.Load4(0)).x), _5.Load4(16).y <= uint(int4(_5.Load4(0)).y), _5.Load4(16).z <= uint(i…
10 …(16).x) > int4(_5.Load4(0)).x, int(_5.Load4(16).y) > int4(_5.Load4(0)).y, int(_5.Load4(16).z) > in…
11 …).x) >= int4(_5.Load4(0)).x, int(_5.Load4(16).y) >= int4(_5.Load4(0)).y, int(_5.Load4(16).z) >= in…
12 … > uint(int4(_5.Load4(0)).x), _5.Load4(16).y > uint(int4(_5.Load4(0)).y), _5.Load4(16).z > uint(in…
13 …= uint(int4(_5.Load4(0)).x), _5.Load4(16).y >= uint(int4(_5.Load4(0)).y), _5.Load4(16).z >= uint(i…
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl/asm/comp/
Dbitcast_icmp.asm.comp6 …(16).x) < int4(_5.Load4(0)).x, int(_5.Load4(16).y) < int4(_5.Load4(0)).y, int(_5.Load4(16).z) < in…
7 …).x) <= int4(_5.Load4(0)).x, int(_5.Load4(16).y) <= int4(_5.Load4(0)).y, int(_5.Load4(16).z) <= in…
8 … < uint(int4(_5.Load4(0)).x), _5.Load4(16).y < uint(int4(_5.Load4(0)).y), _5.Load4(16).z < uint(in…
9 …= uint(int4(_5.Load4(0)).x), _5.Load4(16).y <= uint(int4(_5.Load4(0)).y), _5.Load4(16).z <= uint(i…
10 …(16).x) > int4(_5.Load4(0)).x, int(_5.Load4(16).y) > int4(_5.Load4(0)).y, int(_5.Load4(16).z) > in…
11 …).x) >= int4(_5.Load4(0)).x, int(_5.Load4(16).y) >= int4(_5.Load4(0)).y, int(_5.Load4(16).z) >= in…
12 … > uint(int4(_5.Load4(0)).x), _5.Load4(16).y > uint(int4(_5.Load4(0)).y), _5.Load4(16).z > uint(in…
13 …= uint(int4(_5.Load4(0)).x), _5.Load4(16).y >= uint(int4(_5.Load4(0)).y), _5.Load4(16).z >= uint(i…
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl-no-opt/asm/comp/
Dglsl-signed-operations.asm.comp5 int4 _19 = int4(_4.Load4(0));
9 _4.Store4(0, uint4(abs(int4(_20))));
10 _4.Store4(16, uint4(abs(int4(_20))));
13 _4.Store4(0, uint4(sign(int4(_20))));
14 _4.Store4(16, uint4(sign(int4(_20))));
15 _4.Store4(0, uint4(firstbithigh(int4(_20))));
16 _4.Store4(16, uint4(firstbithigh(int4(_20))));
17 _4.Store4(0, uint4(int4(firstbithigh(uint4(_19)))));
20 _4.Store4(16, uint4(min(_19, int4(_20))));
21 _4.Store4(0, uint4(min(int4(_20), int4(_20))));
[all …]
/third_party/skia/tests/sksl/runtime/
DLoopInt.stage56 int4 result = int4(9);
59 result = int4(result.yzw, i);
61 return result == int4(9, 1, 2, 3);
67 int4 result = int4(9);
70 result = int4(result.yzw, i);
72 return result == int4(9, 1, 2, 3);
78 int4 result = int4(9);
81 result = int4(result.yzw, i);
83 return result == int4(9, 3, 2, 1);
89 int4 result = int4(9);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/asm/comp/
Dglsl-signed-operations.asm.comp10 int4 ints;
38 int4 _19 = _4.ints;
42 _4.ints = abs(int4(_20));
43 _4.uints = uint4(abs(int4(_20)));
46 _4.ints = sign(int4(_20));
47 _4.uints = uint4(sign(int4(_20)));
48 _4.ints = spvFindSMSB(int4(_20));
49 _4.uints = uint4(spvFindSMSB(int4(_20)));
50 _4.ints = int4(spvFindUMSB(uint4(_19)));
53 _4.uints = uint4(min(_19, int4(_20)));
[all …]
/third_party/skia/resources/sksl/runtime/
DLoopInt.rts41 int4 result = int4(9);
43 result = int4(result.yzw, i);
45 return result == int4(9, 1, 2, 3);
53 int4 result = int4(9);
55 result = int4(result.yzw, i);
57 return result == int4(9, 1, 2, 3);
65 int4 result = int4(9);
67 result = int4(result.yzw, i);
69 return result == int4(9, 3, 2, 1);
77 int4 result = int4(9);
[all …]
/third_party/skia/resources/sksl/shared/
DNegation.sksl29 const int4 one_splat = int4(1);
30 const int4 one_compound = int4(1, 1, 1, 1);
33 ok = ok && (int4(-1) == -one_splat);
34 ok = ok && (int4(-1, -1, -1, -1) == -one_splat);
35 ok = ok && (int4(-1) == -one_compound);
36 ok = ok && (int4(-1, -1, -1, -1) == -one_compound);
37 ok = ok && (-int4(1) == -one_splat);
38 ok = ok && (-int4(1, 1, 1, 1) == -one_splat);
39 ok = ok && (-int4(1) == -one_compound);
40 ok = ok && (-int4(1, 1, 1, 1) == -one_compound);
[all …]
DVectorScalarMath.sksl60 int4 inputRed = int4(colorRed);
61 int4 inputGreen = int4(colorGreen);
64 int4 x = inputRed + 2;
65 ok = ok && (x == int4(3, 2, 2, 3));
67 ok = ok && (x == int4(-1, -1, -2, -2));
69 ok = ok && (x == int4(2, 1, 1, 2));
71 ok = ok && (x == int4(9, 9, 9, 2));
73 ok = ok && (x == int4(3, 0, 9, 2));
77 ok = ok && (x == int4(0, 5, 5, 0));
81 ok = ok && (x == int4(3, 2, 2, 3));
[all …]
/third_party/flutter/skia/tests/
DSkVxTest.cpp25 using int4 = skvx::Vec<4,int32_t>; typedef
48 float4 IfThenElse(int4 c, float4 t, float4 e) { return if_then_else(c,t,e); } in IfThenElse()
60 int4 mask = float4{1,2,3,4} < float4{1,2,4,8}; in DEF_TEST()
84 REPORTER_ASSERT(r, all(int4{1,2,3,4,5} == int4{1,2,3,4})); in DEF_TEST()
85 REPORTER_ASSERT(r, all(int4{1,2,3,4} == int4{1,2,3,4})); in DEF_TEST()
86 REPORTER_ASSERT(r, all(int4{1,2,3} == int4{1,2,3,0})); in DEF_TEST()
87 REPORTER_ASSERT(r, all(int4{1,2} == int4{1,2,0,0})); in DEF_TEST()
88 REPORTER_ASSERT(r, all(int4{1} == int4{1,0,0,0})); in DEF_TEST()
89 REPORTER_ASSERT(r, all(int4(1) == int4{1,1,1,1})); in DEF_TEST()
90 REPORTER_ASSERT(r, all(int4{} == int4{0,0,0,0})); in DEF_TEST()
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/asm/comp/
Dbitcast_sar.asm.comp8 int4 _m0;
15 int4 _m1;
20 int4 _22 = _5._m0;
22 _6._m0 = uint4(int4(_23) >> _22);
23 _6._m0 = uint4(_22 >> int4(_23));
24 _6._m0 = uint4(int4(_23) >> int4(_23));
26 _6._m1 = int4(_23) >> int4(_23);
28 _6._m1 = int4(_23) >> _22;
29 _6._m1 = _22 >> int4(_23);
Dbitcast_sdiv.asm.comp8 int4 _m0;
15 int4 _m1;
20 int4 _22 = _5._m0;
22 _6._m0 = uint4(int4(_23) / _22);
23 _6._m0 = uint4(_22 / int4(_23));
24 _6._m0 = uint4(int4(_23) / int4(_23));
26 _6._m1 = int4(_23) / int4(_23);
28 _6._m1 = int4(_23) / _22;
29 _6._m1 = _22 / int4(_23);
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/asm/comp/
Dbitcast_sdiv.asm.comp8 int4 _m0;
15 int4 _m1;
20 int4 _22 = _5._m0;
22 _6._m0 = uint4(int4(_23) / _22);
23 _6._m0 = uint4(_22 / int4(_23));
24 _6._m0 = uint4(int4(_23) / int4(_23));
26 _6._m1 = int4(_23) / int4(_23);
28 _6._m1 = int4(_23) / _22;
29 _6._m1 = _22 / int4(_23);
Dbitcast_sar.asm.comp8 int4 _m0;
15 int4 _m1;
20 int4 _22 = _5._m0;
22 _6._m0 = uint4(int4(_23) >> _22);
23 _6._m0 = uint4(_22 >> int4(_23));
24 _6._m0 = uint4(int4(_23) >> int4(_23));
26 _6._m1 = int4(_23) >> int4(_23);
28 _6._m1 = int4(_23) >> _22;
29 _6._m1 = _22 >> int4(_23);
/third_party/skia/third_party/externals/swiftshader/third_party/astc-encoder/Source/
Dastc_mathlib.h119 typedef vtype4<int> int4; typedef
122 static inline int4 operator+(int4 p, int4 q) { return int4( p.x + q.x, p.y + q.y, p.z …
125 static inline int4 operator-(int4 p, int4 q) { return int4( p.x - q.x, p.y - q.y, p.z …
128 static inline int4 operator*(int4 p, int4 q) { return int4( p.x * q.x, p.y * q.y, p.z …
131 static inline int4 operator*(int4 p, int q) { return int4( p.x * q, p.y * q, p.z * q,…
134 static inline int4 operator*(int p, int4 q) { return q * p; }
/third_party/skia/resources/sksl/intrinsics/
DMinInt.sksl5 int4 intValues = int4(testInputs * 100);
6 int4 intGreen = int4(colorGreen * 100);
7 const int4 constVal = int4(-125, 0, 75, 225);
8 const int4 constGreen = int4(0, 100, 0, 100);
10 int4 expectedA = int4(-125, 0, 50, 50);
11 int4 expectedB = int4(-125, 0, 0, 100);

12345678910>>...23