Home | History | Annotate | Download | only in functional

Lines Matching refs:Vec2

46 using tcu::Vec2;
109 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize)
111 return safeCoords(raw, textureSize, Vec2(0.5f));
149 Vec2 scale;
150 Vec2 bias;
152 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {}
158 Vec2 scale;
159 Vec2 bias;
162 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), bias(bias_), face(face_) {}
197 const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); return (float*)&m_positions[0]; }
205 vector<Vec2> m_positions;
247 Vec2 quadVertices[4] = { Vec2(fx0, fy0), Vec2(fx1, fy0), Vec2(fx0, fy1), Vec2(fx1, fy1) };
252 m_positions.push_back(safeCoords(quadVertices[i], renderSize, Vec2(0.0f)) * 2.0f - 1.0f);
281 Vec2 rawCoord = Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) * texCoordParams.scale + texCoordParams.bias;
305 const Vec2 rawFaceCoord = texCoordParams.scale * Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) + texCoordParams.bias;
306 const Vec2 safeFaceCoord = useSafeTexCoords ? safe2DTexCoords(rawFaceCoord, textureSize) : rawFaceCoord;
359 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); }
404 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
438 "attribute highp vec2 a_position;\n"
439 "attribute highp vec2 a_texCoord;\n"
542 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const
545 const Vec2 srcSize = Vec2((float)refTexture.getWidth(), (float)refTexture.getHeight());
546 const Vec2 sizeRatio = texScale*srcSize / dstSize;
578 const Vec2 texMinScale (+1.8f, +1.8f);
579 const Vec2 texMinOffset (-0.3f, -0.2f);
580 const Vec2 texMagScale (+0.3f, +0.3f);
581 const Vec2 texMagOffset (+0.9f, +0.8f);
591 const Vec2 texCoordScale;
592 const Vec2 texCoordOffset;
593 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {}
707 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
744 "attribute highp vec2 a_position;\n"
869 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const
872 const Vec2 srcSize = Vec2((float)refTexture.getSize(), (float)refTexture.getSize());
873 const Vec2 sizeRatio = texScale*srcSize / dstSize;
905 const Vec2 texMinScale (1.0f, 1.0f);
906 const Vec2 texMinOffset (0.0f, 0.0f);
907 const Vec2 texMagScale (0.3f, 0.3f);
908 const Vec2 texMagOffset (0.5f, 0.3f);
932 const Vec2 texCoordScale;
933 const Vec2 texCoordOffset;
934 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {}