Home | History | Annotate | Download | only in functional

Lines Matching refs:Vec2

44 using tcu::Vec2;
124 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize)
126 return safeCoords(raw, textureSize, Vec2(0.5f));
180 Vec2 scale;
181 Vec2 bias;
183 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {}
189 Vec2 scale;
190 Vec2 bias;
193 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), bias(bias_), face(face_) {}
244 const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); return (float*)&m_positions[0]; }
252 vector<Vec2> m_positions;
294 Vec2 quadVertices[4] = { Vec2(fx0, fy0), Vec2(fx1, fy0), Vec2(fx0, fy1), Vec2(fx1, fy1) };
299 m_positions.push_back(safeCoords(quadVertices[i], renderSize, Vec2(0.0f)) * 2.0f - 1.0f);
328 Vec2 rawCoord = Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) * texCoordParams.scale + texCoordParams.bias;
352 const Vec2 rawFaceCoord = texCoordParams.scale * Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) + texCoordParams.bias;
353 const Vec2 safeFaceCoord = useSafeTexCoords ? safe2DTexCoords(rawFaceCoord, textureSize) : rawFaceCoord;
452 static inline Vec4 sample (const tcu::Texture2D& tex, const Vec2& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), lod); }
499 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
534 "in highp vec2 a_position;\n"
535 "in highp vec2 a_texCoord;\n"
640 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const
643 const Vec2 srcSize = Vec2((float)refTexture.getWidth(), (float)refTexture.getHeight());
644 const Vec2 sizeRatio = texScale*srcSize / dstSize;
676 const Vec2 texMinScale (+1.8f, +1.8f);
677 const Vec2 texMinOffset (-0.3f, -0.2f);
678 const Vec2 texMagScale (+0.3f, +0.3f);
679 const Vec2 texMagOffset (+0.9f, +0.8f);
689 const Vec2 texCoordScale;
690 const Vec2 texCoordOffset;
691 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {}
805 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
840 "in highp vec2 a_position;\n"
961 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const
964 const Vec2 srcSize = Vec2((float)refTexture.getSize(), (float)refTexture.getSize());
965 const Vec2 sizeRatio = texScale*srcSize / dstSize;
997 const Vec2 texMinScale (1.0f, 1.0f);
998 const Vec2 texMinOffset (0.0f, 0.0f);
999 const Vec2 texMagScale (0.3f, 0.3f);
1000 const Vec2 texMagOffset (0.5f, 0.3f);
1024 const Vec2 texCoordScale;
1025 const Vec2 texCoordOffset;
1026 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {}
1143 float calculateLod (const Mat3& transf, const Vec2& dstSize, int textureNdx) const;
1178 "in highp vec2 a_position;\n"
1286 float Vertex2DArrayTextureCase::calculateLod (const Mat3& transf, const Vec2& dstSize, int textureNdx) const
1293 const Vec2 trans00 = (transf * Vec3(0.0f, 0.0f, 1.0f)).xy();
1294 const Vec2 trans01 = (transf * Vec3(0.0f, 1.0f, 1.0f)).xy();
1295 const Vec2 trans10 = (transf * Vec3(1.0f, 0.0f, 1.0f)).xy();
1481 float calculateLod (const Mat3& transf, const Vec2& dstSize, int textureNdx) const;
1518 "in highp vec2 a_position;\n"
1626 float Vertex3DTextureCase::calculateLod (const Mat3& transf, const Vec2& dstSize, int textureNdx) const