Lines Matching full:namelength
1680 glw::GLint nameLength = -1;
1684 gl.getProgramResourceiv(program.getProgram(), programMemberInterfaceValue, activeVariableIndices[varNdx], 1, &nameProp, 1, &written, &nameLength);
1687 if (nameLength <= 0 || written <= 0)
1694 nameBuffer.resize(nameLength + 2, 'X'); // allocate more than required
1696 gl.getProgramResourceName(program.getProgram(), programMemberInterfaceValue, activeVariableIndices[varNdx], nameLength+1, &written, &nameBuffer[0]);
1705 else if (written > nameLength)
2217 glw::GLint nameLength = -1;
2221 gl.getProgramResourceiv(program.getProgram(), GL_UNIFORM, activeVariables[ndx], 1, &nameLengthProp, 1, &written, &nameLength
2224 if (written <= 0 || nameLength == -1)
2231 nameBuf.resize(nameLength + 2, 'X'); // +2 to tolerate potential off-by-ones in some implementations, name queries will check these cases better