Home
last modified time | relevance | path

Searched refs:Vec2 (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/external/rust/crates/glam/src/f32/
Dvec2.rs16 pub const fn vec2(x: f32, y: f32) -> Vec2 { in vec2() argument
17 Vec2::new(x, y) in vec2()
25 pub struct Vec2 { struct
30 impl Vec2 { implementation
671 impl Default for Vec2 { implementation
678 impl Div<Vec2> for Vec2 { implementation
689 impl DivAssign<Vec2> for Vec2 { implementation
697 impl Div<f32> for Vec2 { implementation
708 impl DivAssign<f32> for Vec2 { implementation
716 impl Div<Vec2> for f32 {
[all …]
Daffine2.rs3 use crate::{Mat2, Mat3, Mat3A, Vec2, Vec3A};
11 pub translation: Vec2,
21 translation: Vec2::ZERO,
29 translation: Vec2::ZERO,
35 translation: Vec2::NAN,
40 pub const fn from_cols(x_axis: Vec2, y_axis: Vec2, z_axis: Vec2) -> Self { in from_cols() argument
52 translation: Vec2::from_slice(&m[4..6]),
98 translation: Vec2::from_slice(&slice[4..6]), in from_cols_slice()
116 pub fn from_scale(scale: Vec2) -> Self { in from_scale()
119 translation: Vec2::ZERO, in from_scale()
[all …]
/external/llvm/unittests/ADT/
DPackedVectorTest.cpp34 PackedVector<unsigned, 2> Vec2(3); in TEST() local
35 EXPECT_EQ(3U, Vec2.size()); in TEST()
36 EXPECT_FALSE(Vec2.empty()); in TEST()
52 EXPECT_FALSE(Vec == Vec2); in TEST()
53 EXPECT_TRUE(Vec != Vec2); in TEST()
55 Vec = Vec2; in TEST()
56 EXPECT_TRUE(Vec == Vec2); in TEST()
57 EXPECT_FALSE(Vec != Vec2); in TEST()
60 Vec2[1] = 2; in TEST()
61 Vec |= Vec2; in TEST()
[all …]
/external/rust/crates/glam/src/f32/scalar/
Dmat2.rs3 use crate::{swizzles::*, DMat2, Mat3, Mat3A, Vec2};
15 pub const fn mat2(x_axis: Vec2, y_axis: Vec2) -> Mat2 { in mat2() argument
28 pub x_axis: Vec2,
29 pub y_axis: Vec2,
34 pub const ZERO: Self = Self::from_cols(Vec2::ZERO, Vec2::ZERO);
37 pub const IDENTITY: Self = Self::from_cols(Vec2::X, Vec2::Y);
40 pub const NAN: Self = Self::from_cols(Vec2::NAN, Vec2::NAN);
46 x_axis: Vec2::new(m00, m01), in new()
47 y_axis: Vec2::new(m10, m11), in new()
53 pub const fn from_cols(x_axis: Vec2, y_axis: Vec2) -> Self { in from_cols() argument
[all …]
/external/deqp/framework/common/
DtcuTexLookupVerifier.hpp107 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dudy, const LodPrecision& prec);
108 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dudy, const f…
109 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dwdx, const f…
110 Vec2 computeCubeLodBoundsFromDerivates (const Vec3& coord, const Vec3& coordDx, const Vec3& coordD…
112 Vec2 clampLodBounds (const Vec2& lodBounds, const Vec2& lodMinMax, const LodPrecision& prec);
114 …t Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const V…
115 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound…
116 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V…
117 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound…
118 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V…
[all …]
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()
145 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in pixelOnlyOnASharedEdge()
147 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge()
148 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge()
149 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge()
[all …]
DtcuTexCompareVerifier.hpp55 …, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBound…
56 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f…
57 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f…
58 …mpler& sampler, const TexComparePrecision& prec, const Vec1& coord, const Vec2& lodBounds, const f…
59 …, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBound…
60 …mpler& sampler, const TexComparePrecision& prec, const Vec4& coord, const Vec2& lodBounds, const f…
62 … texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2…
DtcuTexLookupVerifier.cpp251 const Vec2& fBounds, in isLinearRangeValid()
289 const Vec2& xBounds, in isBilinearRangeValid()
290 const Vec2& yBounds, in isBilinearRangeValid()
318 const Vec2& xBounds, in isTrilinearRangeValid()
319 const Vec2& yBounds, in isTrilinearRangeValid()
320 const Vec2& zBounds, in isTrilinearRangeValid()
400 const Vec2& xBounds0, in is1DTrilinearFilterResultValid()
401 const Vec2& xBounds1, in is1DTrilinearFilterResultValid()
402 const Vec2& zBounds, in is1DTrilinearFilterResultValid()
437 const Vec2& xBounds0, in is2DTrilinearFilterResultValid()
[all …]
/external/deqp/modules/gles2/functional/
Des2fMultisampleTests.cpp50 using tcu::Vec2;
65 Vec2 p0;
66 Vec2 p1;
67 Vec2 p2;
68 Vec2 p3;
70 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners()
189 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve…
190 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
191 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
192 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
[all …]
Des2fVertexTextureTests.cpp46 using tcu::Vec2;
109 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords()
111 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
149 Vec2 scale;
150 Vec2 bias;
152 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams()
158 Vec2 scale;
159 Vec2 bias;
162 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams()
197 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr()
[all …]
/external/deqp/modules/gles2/accuracy/
Des2aTextureMipmapTests.cpp53 using tcu::Vec2;
188 Vec2 bottomLeft; in getBasicTexCoord2D()
189 Vec2 topRight; in getBasicTexCoord2D()
192 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
193 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
194 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
195 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
197 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
198 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
199 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
/external/deqp/modules/gles3/accuracy/
Des3aTextureMipmapTests.cpp50 using tcu::Vec2;
179 Vec2 bottomLeft; in getBasicTexCoord2D()
180 Vec2 topRight; in getBasicTexCoord2D()
183 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
184 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
185 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
186 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
188 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
189 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
190 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
/external/rust/crates/glam/src/swizzles/
Dvec_traits.rs69 type Vec2; typedef
78 fn xx(self) -> Self::Vec2; in xx() argument
80 fn xy(self) -> Self::Vec2; in xy() argument
82 fn xz(self) -> Self::Vec2; in xz() argument
84 fn yx(self) -> Self::Vec2; in yx() argument
86 fn yy(self) -> Self::Vec2; in yy() argument
88 fn yz(self) -> Self::Vec2; in yz() argument
90 fn zx(self) -> Self::Vec2; in zx() argument
92 fn zy(self) -> Self::Vec2; in zy() argument
94 fn zz(self) -> Self::Vec2; in zz() argument
[all …]
Dvec2_impl.rs3 use crate::{Vec2, Vec2Swizzles, Vec3, Vec4};
5 impl Vec2Swizzles for Vec2 { implementation
11 fn xx(self) -> Vec2 { in xx() argument
12 Vec2 { in xx()
19 fn xy(self) -> Vec2 { in xy() argument
20 Vec2 { in xy()
27 fn yx(self) -> Vec2 { in yx() argument
28 Vec2 { in yx()
35 fn yy(self) -> Vec2 { in yy() argument
36 Vec2 { in yy()
/external/rust/crates/glam/src/f32/coresimd/
Dmat2.rs3 use crate::{swizzles::*, DMat2, Mat3, Mat3A, Vec2};
17 pub const fn mat2(x_axis: Vec2, y_axis: Vec2) -> Mat2 { in mat2() argument
28 pub const ZERO: Self = Self::from_cols(Vec2::ZERO, Vec2::ZERO);
31 pub const IDENTITY: Self = Self::from_cols(Vec2::X, Vec2::Y);
34 pub const NAN: Self = Self::from_cols(Vec2::NAN, Vec2::NAN);
44 pub const fn from_cols(x_axis: Vec2, y_axis: Vec2) -> Self { in from_cols() argument
68 Self::from_cols(Vec2::from_array(m[0]), Vec2::from_array(m[1]))
81 pub const fn from_diagonal(diagonal: Vec2) -> Self { in from_diagonal()
88 pub fn from_scale_angle(scale: Vec2, angle: f32) -> Self { in from_scale_angle() argument
141 pub fn col(&self, index: usize) -> Vec2 { in col() argument
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dtypes.h135 struct alignas(sizeof(T)) Vec2 { struct
143 Vec2() : Vec2(T(0.0f)) {} in Vec2() argument
146 Vec2(S x_, S y_) : x(x_), y(y_) {} in Vec2() function
147 explicit Vec2(T v) : x(v), y(v) {} in Vec2() function
150 explicit Vec2(S v) : x(v), y(v) {} in Vec2() function
152 Vec2(const Vec2& f) : x(f.x), y(f.y) {} in Vec2() argument
155 Vec2(const Vec2<S>& f) : x(f.x), y(f.y) {} in Vec2() argument
157 Vec2& operator=(const Vec2& other) {
163 bool operator==(const Vec2& value) const {
167 bool operator!=(const Vec2& value) const {
[all …]
/external/rust/crates/glam/src/f32/sse2/
Dmat2.rs3 use crate::{swizzles::*, DMat2, Mat3, Mat3A, Vec2};
25 pub const fn mat2(x_axis: Vec2, y_axis: Vec2) -> Mat2 { in mat2() argument
36 pub const ZERO: Self = Self::from_cols(Vec2::ZERO, Vec2::ZERO);
39 pub const IDENTITY: Self = Self::from_cols(Vec2::X, Vec2::Y);
42 pub const NAN: Self = Self::from_cols(Vec2::NAN, Vec2::NAN);
57 pub const fn from_cols(x_axis: Vec2, y_axis: Vec2) -> Self { in from_cols() argument
86 Self::from_cols(Vec2::from_array(m[0]), Vec2::from_array(m[1]))
99 pub const fn from_diagonal(diagonal: Vec2) -> Self { in from_diagonal()
106 pub fn from_scale_angle(scale: Vec2, angle: f32) -> Self { in from_scale_angle() argument
159 pub fn col(&self, index: usize) -> Vec2 { in col() argument
[all …]
/external/rust/crates/glam/src/f32/wasm32/
Dmat2.rs3 use crate::{swizzles::*, DMat2, Mat3, Mat3A, Vec2};
17 pub const fn mat2(x_axis: Vec2, y_axis: Vec2) -> Mat2 { in mat2() argument
28 pub const ZERO: Self = Self::from_cols(Vec2::ZERO, Vec2::ZERO);
31 pub const IDENTITY: Self = Self::from_cols(Vec2::X, Vec2::Y);
34 pub const NAN: Self = Self::from_cols(Vec2::NAN, Vec2::NAN);
44 pub const fn from_cols(x_axis: Vec2, y_axis: Vec2) -> Self { in from_cols() argument
68 Self::from_cols(Vec2::from_array(m[0]), Vec2::from_array(m[1]))
81 pub const fn from_diagonal(diagonal: Vec2) -> Self { in from_diagonal()
88 pub fn from_scale_angle(scale: Vec2, angle: f32) -> Self { in from_scale_angle() argument
141 pub fn col(&self, index: usize) -> Vec2 { in col() argument
[all …]
/external/deqp/modules/gles31/functional/
Des31fMultisampleTests.cpp45 using tcu::Vec2;
141 tcu::Vec2 samplePos = tcu::Vec2(-1, -1); in iterate()
177 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const…
178 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) co…
179 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve…
180 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve…
346 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle()
354 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle()
359 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad()
365 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad()
[all …]
Des31fTextureFilteringTests.cpp139 tcu::Vec2 bottomLeft;
140 tcu::Vec2 topRight;
141 tcu::Vec2 layerRange;
148 …onst glu::TextureCubeArray* tex_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRight_, const … in FilterCase()
285 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5… in init()
286 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(0.5f, 0.65f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5f… in init()
287 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(floa… in init()
288 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(0.2f, 0.2f), tcu::Vec2(0.6f, 0.5f), tcu::Vec2(float(… in init()
296 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.25f, -1.2f), tcu::Vec2(1.2f, 1.25f), tcu::Vec2(-0.… in init()
298 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.19f, -1.3f), tcu::Vec2(1.1f, 1.35f), tcu::Vec2(-0.… in init()
[all …]
/external/deqp/modules/gles3/functional/
Des3fMultisampleTests.cpp51 using tcu::Vec2;
67 Vec2 p0;
68 Vec2 p1;
69 Vec2 p2;
70 Vec2 p3;
72 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners()
213 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve…
214 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
215 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
216 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
[all …]
/external/rust/crates/glam/src/swizzles/coresimd/
Dvec3a_impl.rs5 use crate::{Vec2, Vec3A, Vec3Swizzles, Vec4};
10 type Vec2 = Vec2; typedef
15 fn xx(self) -> Vec2 { in xx() argument
16 Vec2 { in xx()
23 fn xy(self) -> Vec2 { in xy() argument
24 Vec2 { in xy()
31 fn xz(self) -> Vec2 { in xz() argument
32 Vec2 { in xz()
39 fn yx(self) -> Vec2 { in yx() argument
40 Vec2 { in yx()
[all …]
/external/rust/crates/glam/src/swizzles/wasm32/
Dvec3a_impl.rs5 use crate::{Vec2, Vec3A, Vec3Swizzles, Vec4};
10 type Vec2 = Vec2; typedef
15 fn xx(self) -> Vec2 { in xx() argument
16 Vec2 { in xx()
23 fn xy(self) -> Vec2 { in xy() argument
24 Vec2 { in xy()
31 fn xz(self) -> Vec2 { in xz() argument
32 Vec2 { in xz()
39 fn yx(self) -> Vec2 { in yx() argument
40 Vec2 { in yx()
[all …]
/external/rust/crates/glam/src/swizzles/sse2/
Dvec3a_impl.rs5 use crate::{Vec2, Vec3A, Vec3Swizzles, Vec4};
13 type Vec2 = Vec2; typedef
18 fn xx(self) -> Vec2 { in xx() argument
19 Vec2 { in xx()
26 fn xy(self) -> Vec2 { in xy() argument
27 Vec2 { in xy()
34 fn xz(self) -> Vec2 { in xz() argument
35 Vec2 { in xz()
42 fn yx(self) -> Vec2 { in yx() argument
43 Vec2 { in yx()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/
DvktPrimitivesGeneratedQueryTests.cpp183 void fillVertexBuffer (tcu::Vec2* vertices,
291 …ogyData.at(m_parameters.primitiveTopology).getNumVertices(primitivesGenerated) * sizeof(tcu::Vec2); in iterate()
395 fillVertexBuffer(static_cast<tcu::Vec2*>(vtxBufferAlloc.get()->getHostPtr()), primitivesGenerated); in iterate()
639 bindingDescription.stride = sizeof(tcu::Vec2); in makeGraphicsPipeline()
785 void PrimitivesGeneratedQueryTestInstance::fillVertexBuffer(tcu::Vec2* vertices, const deUint64 pri… in fillVertexBuffer()
795 vertices[prim] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 0.0f); in fillVertexBuffer()
803 vertices[2* prim + 0] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, 1.0f); in fillVertexBuffer()
804 vertices[2* prim + 1] = tcu::Vec2(-1.0f + 2.0f * (float)prim * step, -1.0f); in fillVertexBuffer()
810 vertices[0] = tcu::Vec2(-1.0f,-1.0f); in fillVertexBuffer()
811 vertices[1] = tcu::Vec2(-1.0f, 1.0f); in fillVertexBuffer()
[all …]

12345678910>>...14