Home
last modified time | relevance | path

Searched full:vec2 (Results 1 – 25 of 4467) sorted by relevance

12345678910>>...179

/aosp_15_r20/external/rust/android-crates-io/crates/glam/tests/
Dvec2.rs7 ($t:ident, $new:ident, $vec2:ident, $vec3:ident, $mask:ident) => {
9 const V0: $vec2 = $vec2::splat(1 as $t);
10 const V1: $vec2 = $vec2::new(1 as $t, 2 as $t);
11 const V2: $vec2 = $vec2::from_array([1 as $t, 2 as $t]);
18 assert_eq!($vec2::ZERO, $new(0 as $t, 0 as $t));
19 assert_eq!($vec2::ONE, $new(1 as $t, 1 as $t));
20 assert_eq!($vec2::X, $new(1 as $t, 0 as $t));
21 assert_eq!($vec2::Y, $new(0 as $t, 1 as $t));
22 assert_eq!($vec2::MIN, $new($t::MIN, $t::MIN));
23 assert_eq!($vec2::MAX, $new($t::MAX, $t::MAX));
[all …]
Daffine2.rs5 ($t:ident, $affine2:ident, $vec2:ident, $mat2:ident, $mat3:ident) => {
19 $affine2::ZERO.transform_point2($vec2::new(1., 2.)),
20 $vec2::ZERO
31 $vec2::from_array(MATRIX2D[0]),
32 $vec2::from_array(MATRIX2D[1]),
33 $vec2::from_array(MATRIX2D[2]),
61 assert_eq!($vec2::ZERO, a.translation);
63 let t = $vec2::from_array(MATRIX2D[2]);
77 let translate = $affine2::from_translation($vec2::new(1.0, 2.0));
78 assert_eq!(translate.translation, $vec2::new(1.0, 2.0).into());
[all …]
/aosp_15_r20/external/deqp/android/cts/main/vk-main-2020-03-01/
H A Dspirv-assembly.txt1217 dEQP-VK.spirv_assembly.type.vec2.i16.abs_comp
1218 dEQP-VK.spirv_assembly.type.vec2.i16.abs_test_high_part_zero_comp
1219 dEQP-VK.spirv_assembly.type.vec2.i16.add_comp
1220 dEQP-VK.spirv_assembly.type.vec2.i16.add_test_high_part_zero_comp
1221 dEQP-VK.spirv_assembly.type.vec2.i16.bitwise_and_comp
1222 dEQP-VK.spirv_assembly.type.vec2.i16.bitwise_and_test_high_part_zero_comp
1223 dEQP-VK.spirv_assembly.type.vec2.i16.bitwise_or_comp
1224 dEQP-VK.spirv_assembly.type.vec2.i16.bitwise_or_test_high_part_zero_comp
1225 dEQP-VK.spirv_assembly.type.vec2.i16.bitwise_xor_comp
1226 dEQP-VK.spirv_assembly.type.vec2.i16.bitwise_xor_test_high_part_zero_comp
[all …]
/aosp_15_r20/external/cronet/third_party/quic_trace/src/tools/render/
H A Dgeometry_util.h25 // A 2D-vector with pairwise operators defined. Named vec2 after the GLSL type
27 struct alignas(8) vec2 { struct
31 constexpr vec2() : x(0.f), y(0.f) {} in vec2() argument
32 constexpr vec2(float x, float y) : x(x), y(y) {} in vec2() function
34 vec2& operator+=(const vec2& other) {
41 constexpr vec2 operator+(vec2 lhs, vec2 rhs) {
42 return vec2(lhs.x + rhs.x, lhs.y + rhs.y);
44 constexpr vec2 operator-(vec2 lhs, vec2 rhs) {
45 return vec2(lhs.x - rhs.x, lhs.y - rhs.y);
47 constexpr vec2 operator*(float lhs, vec2 rhs) {
[all …]
/aosp_15_r20/external/angle/src/compiler/translator/
H A Dbuiltin_function_declarations.txt151 uint packSnorm2x16(vec2);
152 uint packHalf2x16(vec2);
153 vec2 unpackSnorm2x16(uint);
154 vec2 unpackHalf2x16(uint);
155 uint packUnorm2x16(vec2);
156 vec2 unpackUnorm2x16(uint);
188 mat2 outerProduct(vec2, vec2);
191 mat2x3 outerProduct(vec3, vec2);
192 mat3x2 outerProduct(vec2, vec3);
193 mat2x4 outerProduct(vec4, vec2);
[all …]
/aosp_15_r20/external/deqp/data/gles3/shaders/
H A Dswizzle_math_operations.test10 …input vec2 in0 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
11 …input vec2 in1 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
34 …input vec2 in0 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
35 …input vec2 in1 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
36 …output vec2 out0 = [ vec2(0.2, 0.2) | vec2(2.0, 2.0) | vec2(-1.0, -1.0) | vec2(-64.0, -64.0) | vec…
58 …input vec2 in0 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
59 …input vec2 in1 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
60 …output vec2 out0 = [ vec2(0.6, 0.6) | vec2(2.25, 2.25) | vec2(-2.75, -2.75) | vec2(32.0, 32.0) | v…
82 …input vec2 in0 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
83 …input vec2 in1 = [ vec2(0.1, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
[all …]
H A Dinvalid_implicit_conversions.test179 vec2 c;
180 vec2 a;
182 vec2 c = a + b;
200 vec2 a;
219 vec2 c;
220 vec2 a;
222 vec2 c = a + b;
240 vec2 a;
259 vec2 c;
260 vec2 a;
[all …]
/aosp_15_r20/external/deqp/data/gles31/shaders/gl45/
H A Dimplicit_conversions.test60 …output vec2 out0 = [ vec2(3.0, 4.0) | vec2(2.0, 3.0) | vec2(2.0, 3.0) | vec2(4.0, 5.0) | vec2(6.0,…
71 out0 = in0 + vec2(1.0, 2.0);
214 …output vec2 out0 = [ vec2(2.0, 3.0) | vec2(4.0, 5.0) | vec2(5.0, 6.0) | vec2(8.0, 9.0) | vec2(12.0…
225 out0 = in0 + vec2(1.0, 2.0);
302 output vec2 out0 = [ vec2(2.0, 4.0) | vec2(3.0, 3.0) | vec2(4.0, 9.0) ];
313 out0 = in0 + vec2(1.0, 2.0);
324 output vec2 out0 = [ vec2(3.0, 5.0) | vec2(5.0, 8.0) | vec2(2.0, 15.0) ];
335 out0 = in0 + vec2(1.0, 2.0);
504 …output vec2 out0 = [ vec2(1.0, 0.0) | vec2(0.0, -1.0) | vec2(0.0, -1.0) | vec2(2.0, 1.0) | vec2(4.…
515 out0 = in0 - vec2(1.0, 2.0);
[all …]
/aosp_15_r20/external/deqp/data/gles31/shaders/es31/
H A Dimplicit_conversions.test60 …output vec2 out0 = [ vec2(3.0, 4.0) | vec2(2.0, 3.0) | vec2(2.0, 3.0) | vec2(4.0, 5.0) | vec2(6.0,…
71 out0 = in0 + vec2(1.0, 2.0);
214 …output vec2 out0 = [ vec2(2.0, 3.0) | vec2(4.0, 5.0) | vec2(5.0, 6.0) | vec2(8.0, 9.0) | vec2(12.0…
225 out0 = in0 + vec2(1.0, 2.0);
302 output vec2 out0 = [ vec2(2.0, 4.0) | vec2(3.0, 3.0) | vec2(4.0, 9.0) ];
313 out0 = in0 + vec2(1.0, 2.0);
324 output vec2 out0 = [ vec2(3.0, 5.0) | vec2(5.0, 8.0) | vec2(2.0, 15.0) ];
335 out0 = in0 + vec2(1.0, 2.0);
504 …output vec2 out0 = [ vec2(1.0, 0.0) | vec2(0.0, -1.0) | vec2(0.0, -1.0) | vec2(2.0, 1.0) | vec2(4.…
515 out0 = in0 - vec2(1.0, 2.0);
[all …]
/aosp_15_r20/external/deqp/data/gles31/shaders/es32/
H A Dimplicit_conversions.test60 …output vec2 out0 = [ vec2(3.0, 4.0) | vec2(2.0, 3.0) | vec2(2.0, 3.0) | vec2(4.0, 5.0) | vec2(6.0,…
71 out0 = in0 + vec2(1.0, 2.0);
214 …output vec2 out0 = [ vec2(2.0, 3.0) | vec2(4.0, 5.0) | vec2(5.0, 6.0) | vec2(8.0, 9.0) | vec2(12.0…
225 out0 = in0 + vec2(1.0, 2.0);
302 output vec2 out0 = [ vec2(2.0, 4.0) | vec2(3.0, 3.0) | vec2(4.0, 9.0) ];
313 out0 = in0 + vec2(1.0, 2.0);
324 output vec2 out0 = [ vec2(3.0, 5.0) | vec2(5.0, 8.0) | vec2(2.0, 15.0) ];
335 out0 = in0 + vec2(1.0, 2.0);
504 …output vec2 out0 = [ vec2(1.0, 0.0) | vec2(0.0, -1.0) | vec2(0.0, -1.0) | vec2(2.0, 1.0) | vec2(4.…
515 out0 = in0 - vec2(1.0, 2.0);
[all …]
/aosp_15_r20/external/skia/tests/sksl/shared/
H A DVectorConstructors.wgsl12vec2<f32>, v2: vec2<f32>, v3: vec2<f32>, v4: vec3<f32>, v5: vec2<i32>, v6: vec2<i32>, v7: vec2<f32…
17 fn _skslMain(coords: vec2<f32>) -> vec4<f32> {
19 const v1: vec2<f32> = vec2<f32>(1.0);
20 const v2: vec2<f32> = vec2<f32>(1.0, 2.0);
21 const v3: vec2<f32> = vec2<f32>(1.0);
23 const v5: vec2<i32> = vec2<i32>(1);
24 const v6: vec2<i32> = vec2<i32>(1, 2);
25 const v7: vec2<f32> = vec2<f32>(1.0, 2.0);
26 let v8: vec2<f32> = vec2<f32>(v5);
28 let v10: vec2<i32> = vec2<i32>(3, i32(v1.x));
[all …]
H A DVectorConstructors.glsl6 …2f2b2b2b3i4(vec2 v1, vec2 v2, vec2 v3, vec3 v4, ivec2 v5, ivec2 v6, vec2 v7, vec2 v8, vec4 v9, ive…
10 vec2 v1 = vec2(1.0);
11 vec2 v2 = vec2(1.0, 2.0);
12 vec2 v3 = vec2(1.0);
16 vec2 v7 = vec2(1.0, 2.0);
17 vec2 v8 = vec2(v5);
21 vec2 v12 = vec2(1.0, 0.0);
22 vec2 v13 = vec2(0.0);
23 vec2 v14 = vec2(0.0);
/aosp_15_r20/external/deqp/data/gles2/shaders/
H A Dconversions.test212vec2 out0 = [ vec2(0.0, 0.0) | vec2(1.0, 1.0) | vec2(2.0, 2.0) | vec2(3.5, 3.5) | vec2(-0.5, -0.5…
224 out0 = vec2(in0);
410vec2 out0 = [ vec2(0.0, 0.0) | vec2(1.0, 1.0) | vec2(2.0, 2.0) | vec2(5.0, 5.0) | vec2(8.0, 8.0) |…
422 out0 = vec2(in0);
608 output vec2 out0 = [ vec2(1.0, 1.0) | vec2(0.0, 0.0) ];
620 out0 = vec2(in0);
809 …input vec2 in0 = [ vec2(0.0, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
831 …input vec2 in0 = [ vec2(0.0, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
853 …input vec2 in0 = [ vec2(0.0, 0.5) | vec2(1.0, 1.25) | vec2(-0.5, -2.25) | vec2(-32.0, 64.0) | vec2
1417 vec2 in0 = vec2(0.0, 0.5);
[all …]
H A Dinvalid_implicit_conversions.test161 vec2 c;
162 vec2 a;
164 vec2 c = a + b;
180 vec2 a;
197 vec2 c;
198 vec2 a;
200 vec2 c = a + b;
216 vec2 a;
233 vec2 c;
234 vec2 a;
[all …]
/aosp_15_r20/external/deqp/android/cts/main/vk-main-2019-03-01/
H A Dspirv-assembly.txt658 dEQP-VK.spirv_assembly.instruction.compute.composite_insert.vec2
3748 dEQP-VK.spirv_assembly.instruction.graphics.16bit_storage.input_output_float_16_to_16x2.vec2
17540 dEQP-VK.spirv_assembly.type.vec2.i16.abs_frag
17541 dEQP-VK.spirv_assembly.type.vec2.i16.abs_geom
17542 dEQP-VK.spirv_assembly.type.vec2.i16.abs_tessc
17543 dEQP-VK.spirv_assembly.type.vec2.i16.abs_tesse
17544 dEQP-VK.spirv_assembly.type.vec2.i16.abs_test_high_part_zero_frag
17545 dEQP-VK.spirv_assembly.type.vec2.i16.abs_test_high_part_zero_geom
17546 dEQP-VK.spirv_assembly.type.vec2.i16.abs_test_high_part_zero_tessc
17547 dEQP-VK.spirv_assembly.type.vec2.i16.abs_test_high_part_zero_tesse
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/f32/
Dvec2.rs13 pub const fn vec2(x: f32, y: f32) -> Vec2 { in vec2() argument
14 Vec2::new(x, y) in vec2()
22 pub struct Vec2 { struct
27 impl Vec2 { argument
695 /// `Vec2::from_angle(PI).rotate(Vec2::Y)` will create the vector `[-1, 0]`
696 /// and rotate [`Vec2::Y`] around it returning `-Vec2::Y`.
809 impl Default for Vec2 { implementation
816 impl Div<Vec2> for Vec2 { implementation
827 impl DivAssign<Vec2> for Vec2 { implementation
835 impl Div<f32> for Vec2 { implementation
[all …]
/aosp_15_r20/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dsimplex2d.agsl20 half2 hash2d(vec2 p) {
21 p = vec2(dot(p,vec2(157.1, 235.7)), dot(p,vec2(573.5, 13.3)));
25 half hash1d(vec2 p) {
26 return fract(sin(dot(p, vec2(343.0, 49.0)))) * 2. -1.; // [-1, 1]
29 vec2 getVectorFromAngle(float theta) {
30 return vec2(cos(theta), sin(theta));
38 vec2 ihash2d(vec2 p) {
47 return vec2(cos(af), sin(af));
52 float kernel_summation(vec2 v0, vec2 v1, vec2 v2, vec2 g0, vec2 g1, vec2 g2) {
76 float simplex2d_flow(vec2 p, float rot, float time) {
[all …]
/aosp_15_r20/external/deqp/external/vulkancts/data/vulkan/glsl/440/
H A Dlinkage.test6 group vec2 "vec2"
9 desc "Read vertex input (vec2) as float float."
10 output_color vec2
13 … input vec2 in0 = [ vec2(1.0, 11.0) | vec2(1.0, 9.0) | vec2(13.0, 7.0) | vec2(8.0, 3.0) ];
14 … output vec2 out0 = [ vec2(2.0, 22.0) | vec2(2.0, 18.0) | vec2(26.0, 14.0) | vec2(16.0, 6.0) ];
23 layout(location = 0) out vec2 var0;
27 vec2 in0 = vec2(in0_0, in0_1);
36 layout(location = 0) in vec2 var0;
37 layout(location = 0) out vec2 dEQP_FragColor;
41 vec2 out0 = var0;
[all …]
/aosp_15_r20/external/libvpx/vpx_dsp/mips/
H A Dvpx_convolve8_avg_horiz_msa.c57 v8i16 filt, vec0, vec1, vec2, vec3; in common_hz_8t_and_aver_dst_4x8_msa() local
82 filt0, filt1, filt2, filt3, vec2, vec3); in common_hz_8t_and_aver_dst_4x8_msa()
83 SRARI_H4_SH(vec0, vec1, vec2, vec3, FILTER_BITS); in common_hz_8t_and_aver_dst_4x8_msa()
84 SAT_SH4_SH(vec0, vec1, vec2, vec3, 7); in common_hz_8t_and_aver_dst_4x8_msa()
85 PCKEV_B4_UB(vec0, vec0, vec1, vec1, vec2, vec2, vec3, vec3, res0, res1, res2, in common_hz_8t_and_aver_dst_4x8_msa()
151 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; in common_hz_8t_and_aver_dst_16w_msa() local
173 VSHF_B4_SH(src2, src2, mask0, mask1, mask2, mask3, vec2, vec6, vec10, in common_hz_8t_and_aver_dst_16w_msa()
177 DOTP_SB4_SH(vec0, vec1, vec2, vec3, filt0, filt0, filt0, filt0, vec0, vec1, in common_hz_8t_and_aver_dst_16w_msa()
178 vec2, vec3); in common_hz_8t_and_aver_dst_16w_msa()
182 vec2, vec3); in common_hz_8t_and_aver_dst_16w_msa()
[all …]
/aosp_15_r20/external/skia/tests/sksl/realistic/
H A DGaussianBlur.wgsl4 @location(0) vLocalCoord_Stage0: vec2<f32>,
11 @size(16) uIncrement_Stage1_c0: vec2<f32>,
21 fn MatrixEffect_Stage1_c0_c0_h4h4f2(_input: vec4<f32>, _coords: vec2<f32>) -> vec4<f32> {
23 var _1_inCoord: vec2<f32> = (_uniform0.umatrix_Stage1_c0_c0 * vec3<f32>(_coords, 1.0)).xy;
25 var _2_subsetCoord: vec2<f32>;
28 let _3_clampedCoord: vec2<f32> = _2_subsetCoord;
49 …var _7_coord: vec2<f32> = _stageIn.vLocalCoord_Stage0 - vec2<f32>(12.0 * _uniform0.uIncrement_Stag…
50 var _8_coordSampled: vec2<f32> = vec2<f32>(0.0);
54 _7_coord = _7_coord + vec2<f32>(_uniform0.uIncrement_Stage1_c0);
58 _7_coord = _7_coord + vec2<f32>(_uniform0.uIncrement_Stage1_c0);
[all …]
H A DRippleShader.minified.sksl1vec2 in_origin;uniform vec2 in_touch;uniform float in_progress;uniform float in_maxRadius;uniform
/aosp_15_r20/external/skia/resources/sksl/realistic/
H A DRippleShader.rts4 uniform vec2 in_origin;
5 uniform vec2 in_touch;
8 uniform vec2 in_resolutionScale;
9 uniform vec2 in_noiseScale;
13 uniform vec2 in_tCircle1;
14 uniform vec2 in_tCircle2;
15 uniform vec2 in_tCircle3;
16 uniform vec2 in_tRotation1;
17 uniform vec2 in_tRotation2;
18 uniform vec2 in_tRotation3;
[all …]
/aosp_15_r20/external/deqp/external/vulkancts/mustpass/main/vksc-default/
H A Dspirv-assembly.txt2 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.f16.vec2
6 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.f32.vec2
10 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.f64.vec2
14 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.i16.vec2
18 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.i32.vec2
22 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.i64.vec2
26 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.i8.vec2
30 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.u16.vec2
34 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.u32.vec2
38 dEQP-VKSC.spirv_assembly.instruction.amd_trinary_minmax.max3.u64.vec2
[all …]
/aosp_15_r20/external/deqp/framework/common/
H A DtcuRasterizationVerifier.cpp86 const tcu::Vec2 u(p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w()); in isTriangleClockwise()
87 const tcu::Vec2 v(p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise()
104 bool pixelNearLineSegment(const tcu::IVec2 &pixel, const tcu::Vec2 &p0, const tcu::Vec2 &p1) in pixelNearLineSegment()
106 … const tcu::Vec2 pixelCenterPosition = tcu::Vec2((float)pixel.x() + 0.5f, (float)pixel.y() + 0.5f); in pixelNearLineSegment()
114 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment()
115 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment()
146 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = { in pixelOnlyOnASharedEdge()
147 tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), in pixelOnlyOnASharedEdge()
149 tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), in pixelOnlyOnASharedEdge()
151 tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), in pixelOnlyOnASharedEdge()
[all …]
/aosp_15_r20/external/libvpx/third_party/libyuv/source/
H A Drow_msa.cc378 v8i16 vec0, vec1, vec2; in I422ToARGBRow_MSA() local
392 vec0, vec1, vec2); in I422ToARGBRow_MSA()
393 STOREARGB(vec0, vec1, vec2, alpha, dst_argb); in I422ToARGBRow_MSA()
409 v8i16 vec0, vec1, vec2; in I422ToRGBARow_MSA() local
423 vec0, vec1, vec2); in I422ToRGBARow_MSA()
424 STOREARGB(alpha, vec0, vec1, vec2, dst_argb); in I422ToRGBARow_MSA()
442 v8i16 vec0, vec1, vec2; in I422AlphaToARGBRow_MSA() local
458 vec0, vec1, vec2); in I422AlphaToARGBRow_MSA()
460 STOREARGB(vec0, vec1, vec2, src3, dst_argb); in I422AlphaToARGBRow_MSA()
478 v8i16 vec0, vec1, vec2, vec3, vec4, vec5; in I422ToRGB24Row_MSA() local
[all …]

12345678910>>...179