Lines Matching refs:sx

154 	Vec4					getCoords				(float sx, float sy) const;
155 Vec4 getUnitCoords (float sx, float sy) const;
158 Vec4 getUserAttrib (int attribNdx, float sx, float sy) const;
201 float sx = (float)x / (float)gridSize; in QuadGrid() local
203 float fx = 2.0f * sx - 1.0f; in QuadGrid()
209 m_screenPos[vtxNdx] = Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid()
210 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid()
211 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid()
214 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
243 inline Vec4 QuadGrid::getCoords (float sx, float sy) const in getCoords() argument
245 float fx = 2.0f * sx - 1.0f; in getCoords()
250 inline Vec4 QuadGrid::getUnitCoords (float sx, float sy) const in getUnitCoords() argument
252 return Vec4(sx, sy, 0.33f*sx + 0.5f*sy, 0.5f*sx + 0.25f*sy); in getUnitCoords()
255 inline Vec4 QuadGrid::getUserAttrib (int attribNdx, float sx, float sy) const in getUserAttrib() argument
258 return m_userAttribTransforms[attribNdx] * Vec4(sx, sy, 0.0f, 1.0f); in getUserAttrib()
297 void ShaderEvalContext::reset (float sx, float sy) in reset() argument
304 coords = quadGrid.getCoords(sx, sy); in reset()
305 unitCoords = quadGrid.getUnitCoords(sx, sy); in reset()
311 in[attribNdx] = quadGrid.getUserAttrib(attribNdx, sx, sy); in reset()
650 float sx = (float)x / (float)gridSize; in computeVertexReference() local
654 evalCtx.reset(sx, sy); in computeVertexReference()
734 float sx = ((float)x + 0.5f) / (float)width; in computeFragmentReference() local
737 evalCtx.reset(sx, sy); in computeFragmentReference()