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)
1411 GLU_CHECK_CALL(glActiveTexture(GL_TEXTURE0 + value.val.samplerV.unit));
1412 m_filledTextureUnits.push_back(value.val.samplerV.unit);
1433 GLU_CHECK_CALL(glActiveTexture(GL_TEXTURE0 + value.val.samplerV.unit));
1434 m_filledTextureUnits.push_back(value.val.samplerV.unit);
1766 GLint unit = -1;
1767 GLU_CHECK_CALL(glGetUniformiv(programGL, location, &unit));
1768 value.val.samplerV.unit = unit;
1822 if (unifValue.val.samplerV.unit != 0)
2028 GLU_CHECK_CALL(glUniform1i(location, uniform.finalValue.val.samplerV.unit));
2031 const GLint unit = uniform.finalValue.val.samplerV.unit;
2032 GLU_CHECK_CALL(glUniform1iv(location, (GLsizei)valuesToAssign.size(), &unit));
2075 // Assert that no two samplers of different types have the same texture unit - this is an error in GL.
2083 DE_ASSERT(basicUniforms[i].finalValue.val.samplerV.unit != basicUniforms[j].finalValue.val.samplerV.unit);
2090 if (glu::isDataTypeSampler(basicUniforms[i].type) && std::find(m_filledTextureUnits.begin(), m_filledTextureUnits.end(), basicUniforms[i].finalValue.val.samplerV.unit) == m_filledTextureUnits.end())
2092 log << TestLog::Message << "// Filling texture at unit " << apiVarValueStr(basicUniforms[i].finalValue) << " with color " << shaderVarValueStr(basicUniforms[i].finalValue) << TestLog::EndMessage;
2497 // \note Different sampler types may not be bound to same unit when rendering.
2764 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.