Lines Matching refs:location

883         pProgram->pUniforms[i].location = ((GLint*)pCurrent)[0];
898 //crDebug("crStateGLSLProgramCacheUniforms: uniform[%i]=%d, %s", i, pProgram->pUniforms[i].location, pProgram->pUniforms[i].name);
982 static GLboolean crStateGLSLProgramCacheOneUniform(GLuint location, GLsizei cbName, GLchar *pName,
993 //crDebug("crStateGLSLProgramCacheUniforms: uniform[%i]=%s.", location, pName);
995 ((GLint*)*pCurrent)[0] = location;
1043 GLint location;
1054 location = diff_api.GetUniformLocation(pProgram->hwid, name);
1056 if (!crStateGLSLProgramCacheOneUniform(location, cbName, name, &pCurrent, &cbWritten, maxcbData))
1070 /*For array uniforms it's valid to query location of 1st element as both uniform and uniform[0].
1082 if (!crStateGLSLProgramCacheOneUniform(location, cbName, name, &pCurrent, &cbWritten, maxcbData))
1091 location = diff_api.GetUniformLocation(pProgram->hwid, name);
1093 if (!crStateGLSLProgramCacheOneUniform(location, cbName, name, &pCurrent, &cbWritten, maxcbData))
1113 static GLboolean crStateGLSLProgramCacheOneAttrib(GLuint location, GLsizei cbName, GLchar *pName,
1124 crDebug("crStateGLSLProgramCacheOneAttrib: attrib[%i]=%s.", location, pName);
1126 ((GLint*)*pCurrent)[0] = location;
1174 GLint location;
1185 location = diff_api.GetAttribLocation(pProgram->hwid, name);
1187 if (!crStateGLSLProgramCacheOneAttrib(location, cbName, name, &pCurrent, &cbWritten, maxcbData))
1201 /*For array attribs it's valid to query location of 1st element as both attrib and attrib[0].
1213 if (!crStateGLSLProgramCacheOneAttrib(location, cbName, name, &pCurrent, &cbWritten, maxcbData))
1222 location = diff_api.GetAttribLocation(pProgram->hwid, name);
1224 if (!crStateGLSLProgramCacheOneAttrib(location, cbName, name, &pCurrent, &cbWritten, maxcbData))
1268 result = pProgram->pUniforms[i].location;
1409 GLint location;
1413 location = diff_api.GetUniformLocation(pProgram->hwid, pProgram->pUniforms[i].name);
1417 diff_api.Uniform1fv(location, 1, pFdata);
1420 diff_api.Uniform2fv(location, 1, pFdata);
1423 diff_api.Uniform3fv(location, 1, pFdata);
1426 diff_api.Uniform4fv(location, 1, pFdata);
1430 diff_api.Uniform1iv(location, 1, pIdata);
1434 diff_api.Uniform2iv(location, 1, pIdata);
1438 diff_api.Uniform3iv(location, 1, pIdata);
1442 diff_api.Uniform4iv(location, 1, pIdata);
1445 diff_api.UniformMatrix2fv(location, 1, GL_FALSE, pFdata);
1448 diff_api.UniformMatrix3fv(location, 1, GL_FALSE, pFdata);
1451 diff_api.UniformMatrix4fv(location, 1, GL_FALSE, pFdata);
1461 diff_api.Uniform1iv(location, 1, pIdata);
1465 diff_api.UniformMatrix2x3fv(location, 1, GL_FALSE, pFdata);
1468 diff_api.UniformMatrix2x4fv(location, 1, GL_FALSE, pFdata);
1471 diff_api.UniformMatrix3x2fv(location, 1, GL_FALSE, pFdata);
1474 diff_api.UniformMatrix3x4fv(location, 1, GL_FALSE, pFdata);
1477 diff_api.UniformMatrix4x2fv(location, 1, GL_FALSE, pFdata);
1480 diff_api.UniformMatrix4x3fv(location, 1, GL_FALSE, pFdata);