Home | History | Annotate | Download | only in functional

Lines Matching refs:Vec2

44 using tcu::Vec2;
106 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize)
108 return safeCoords(raw, textureSize, Vec2(0.5f));
146 Vec2 scale;
147 Vec2 bias;
149 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {}
155 Vec2 scale;
156 Vec2 bias;
159 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), bias(bias_), face(face_) {}
194 const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); return (float*)&m_positions[0]; }
202 vector<Vec2> m_positions;
244 Vec2 quadVertices[4] = { Vec2(fx0, fy0), Vec2(fx1, fy0), Vec2(fx0, fy1), Vec2(fx1, fy1) };
249 m_positions.push_back(safeCoords(quadVertices[i], renderSize, Vec2(0.0f)) * 2.0f - 1.0f);
278 Vec2 rawCoord = Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) * texCoordParams.scale + texCoordParams.bias;
302 const Vec2 rawFaceCoord = texCoordParams.scale * Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) + texCoordParams.bias;
303 const Vec2 safeFaceCoord = useSafeTexCoords ? safe2DTexCoords(rawFaceCoord, textureSize) : rawFaceCoord;
356 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); }
401 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
435 "attribute highp vec2 a_position;\n"
436 "attribute highp vec2 a_texCoord;\n"
539 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const
542 const Vec2 srcSize = Vec2((float)refTexture.getWidth(), (float)refTexture.getHeight());
543 const Vec2 sizeRatio = texScale*srcSize / dstSize;
575 const Vec2 texMinScale (+1.8f, +1.8f);
576 const Vec2 texMinOffset (-0.3f, -0.2f);
577 const Vec2 texMagScale (+0.3f, +0.3f);
578 const Vec2 texMagOffset (+0.9f, +0.8f);
588 const Vec2 texCoordScale;
589 const Vec2 texCoordOffset;
590 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {}
704 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
738 "attribute highp vec2 a_position;\n"
857 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const
860 const Vec2 srcSize = Vec2((float)refTexture.getSize(), (float)refTexture.getSize());
861 const Vec2 sizeRatio = texScale*srcSize / dstSize;
893 const Vec2 texMinScale (1.0f, 1.0f);
894 const Vec2 texMinOffset (0.0f, 0.0f);
895 const Vec2 texMagScale (0.3f, 0.3f);
896 const Vec2 texMagOffset (0.5f, 0.3f);
920 const Vec2 texCoordScale;
921 const Vec2 texCoordOffset;
922 Render (const Rect& r, int tN, const Vec2& tS, const Vec2& tO) : region(r), textureNdx(tN), texCoordScale(tS), texCoordOffset(tO) {}