Lines Matching refs:sy
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;
259 float sy = static_cast<float>(y) / static_cast<float>(gridSize);
261 float fy = 2.0f * sy - 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
303 float fy = 2.0f * sy - 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);
723 float sy = static_cast<float>(y) / static_cast<float>(gridSize);
726 evalCtx.reset(sx, sy);
811 float sy = ((float)y + 0.5f) / (float)height;
813 evalCtx.reset(sx, sy);