Lines Matching refs:sx
207 Vec4 getCoords(float sx, float sy) const;
208 Vec4 getUnitCoords(float sx, float sy) const;
214 Vec4 getUserAttrib(int attribNdx, float sx, float sy) const;
258 float sx = static_cast<float>(x) / static_cast<float>(gridSize);
260 float fx = 2.0f * sx - 1.0f;
266 m_screenPos[vtxNdx] = Vec4(sx, sy, 0.0f, 1.0f) * viewportScale;
267 m_coords[vtxNdx] = getCoords(sx, sy);
268 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy);
271 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy);
300 inline Vec4 QuadGrid::getCoords(float sx, float sy) const
302 float fx = 2.0f * sx - 1.0f;
307 inline Vec4 QuadGrid::getUnitCoords(float sx, float sy) const
309 return Vec4(sx, sy, 0.33f * sx + 0.5f * sy, 0.5f * sx + 0.25f * sy);
312 inline Vec4 QuadGrid::getUserAttrib(int attribNdx, float sx, float sy) const
315 return m_userAttribTransforms[attribNdx] * Vec4(sx, sy, 0.0f, 1.0f);
363 void ShaderEvalContext::reset(float sx, float sy)
370 coords = quadGrid.getCoords(sx, sy);
371 unitCoords = quadGrid.getUnitCoords(sx, sy);
377 in[attribNdx] = quadGrid.getUserAttrib(attribNdx, sx, sy);
722 float sx = static_cast<float>(x) / static_cast<float>(gridSize);
726 evalCtx.reset(sx, sy);
810 float sx = ((float)x + 0.5f) / (float)width;
813 evalCtx.reset(sx, sy);