Lines Matching refs:unit
306 int unit;
595 result.val.intV[0] = sampler.val.samplerV.unit;
676 result << value.val.samplerV.unit;
687 static VarValue generateRandomVarValue (const glu::DataType type, Random& rnd, int samplerUnit = -1 /* Used if type is a sampler type. \note Samplers' unit numbers are not randomized. */)
721 result.val.samplerV.unit = samplerUnit;
773 result.val.samplerV.unit = 0;
826 if (a.val.samplerV.unit != b.val.samplerV.unit)
1421 GLU_CHECK_CALL(glActiveTexture(GL_TEXTURE0 + value.val.samplerV.unit));
1422 m_filledTextureUnits.push_back(value.val.samplerV.unit);
1443 GLU_CHECK_CALL(glActiveTexture(GL_TEXTURE0 + value.val.samplerV.unit));
1444 m_filledTextureUnits.push_back(value.val.samplerV.unit);
1776 GLint unit = -1;
1777 GLU_CHECK_CALL(glGetUniformiv(programGL, location, &unit));
1778 value.val.samplerV.unit = unit;
1832 if (unifValue.val.samplerV.unit != 0)
2038 GLU_CHECK_CALL(glUniform1i(location, uniform.finalValue.val.samplerV.unit));
2041 const GLint unit = uniform.finalValue.val.samplerV.unit;
2042 GLU_CHECK_CALL(glUniform1iv(location, (GLsizei)valuesToAssign.size(), &unit));
2085 // Assert that no two samplers of different types have the same texture unit - this is an error in GL.
2093 DE_ASSERT(basicUniforms[i].finalValue.val.samplerV.unit != basicUniforms[j].finalValue.val.samplerV.unit);
2100 if (glu::isDataTypeSampler(basicUniforms[i].type) && std::find(m_filledTextureUnits.begin(), m_filledTextureUnits.end(), basicUniforms[i].finalValue.val.samplerV.unit) == m_filledTextureUnits.end())
2102 log << TestLog::Message << "// Filling texture at unit " << apiVarValueStr(basicUniforms[i].finalValue) << " with color " << shaderVarValueStr(basicUniforms[i].finalValue) << TestLog::EndMessage;
2507 // \note Different sampler types may not be bound to same unit when rendering.
2774 continue; // \note Samplers' initial API values (i.e. their texture units) are 0, and no two samplers of different types shall have same unit when rendering.