Lines Matching defs:values
769 // UNIFORMVALUE_ZERO: use zero-valued uniforms. If not given, use random uniform values.
826 // Reference values for info that is expected to be reported by glGetActiveUniform().
868 // Get uniform values with glGetUniform*() and put to valuesDst. Uniforms that get -1 from glGetUniformLocation() get glu::TYPE_INVALID.
871 bool checkUniformDefaultValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms);
872 // Assign the basicUniforms[].finalValue values for uniforms. \note rnd parameter is for booleans (true can be any nonzero value).
874 // Compare the uniform values given in values (obtained with glGetUniform*()) with the basicUniform.finalValue values.
875 bool compareUniformValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms);
1415 bool UniformCase::checkUniformDefaultValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms)
1420 DE_ASSERT(values.size() == basicUniforms.size());
1425 const VarValue& unifValue = values[unifNdx];
1628 bool UniformCase::compareUniformValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms)
1636 const VarValue& unifValue = values[unifNdx];
1725 log << TestLog::Message << "Success: got all-white pixels (all uniforms have correct values)" << TestLog::EndMessage;
1799 VALUETOCHECK_INITIAL = 0, //!< Verify the initial values of the uniforms (i.e. check that they're zero).
1800 VALUETOCHECK_ASSIGNED, //!< Assign values to uniforms with glUniform*(), and check those.
1806 CHECKMETHOD_GET_UNIFORM = 0, //!< Check values with glGetUniform*().
1807 CHECKMETHOD_RENDER, //!< Check values by rendering with the value-checking shader.
1857 case VALUETOCHECK_INITIAL: return "Check initial uniform values (zeros)";
1858 case VALUETOCHECK_ASSIGNED: return "Check assigned uniform values";
1877 case CHECKMETHOD_GET_UNIFORM: return "Verify values with glGetUniform*()";
1878 case CHECKMETHOD_RENDER: return "Verify values by rendering";
1897 case ASSIGNMETHOD_POINTER: return "Assign values by-pointer";
1898 case ASSIGNMETHOD_VALUE: return "Assign values by-value";
1937 vector<VarValue> values;
1941 const bool success = getUniforms(values, basicUniforms, program.getProgram());
1949 const ScopedLogSection section(log, "ValueCheck", "Verify that the reported values match the assigned values");
1950 const bool success = compareUniformValues(values, basicUniforms);
1958 const ScopedLogSection section(log, "ValueCheck", "Verify that the uniforms have correct initial values (zeros)");
1959 const bool success = checkUniformDefaultValues(values, basicUniforms);
2030 PERFORM_AND_CHECK(checkUniformDefaultValues(uniformDefaultValues, basicUniforms), "DefaultValueCheck", "Verify that the uniforms have correct initial values (zeros)");
2044 PERFORM_AND_CHECK(compareUniformValues(uniformValues, basicUniforms), "ValueCheck", "Verify that the reported values match the assigned values");
2203 // Cases testing uniform values.
2209 // Cases checking uniforms' initial values (all must be zeros), with glGetUniform*() or by rendering.
2240 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.
2262 // Cases that first assign values to each uniform, then check the values with glGetUniform*() or by rendering.