Lines Matching defs:values
934 // UNIFORMVALUE_ZERO: use zero-valued uniforms. If not given, use random uniform values.
991 // Reference values for info that is expected to be reported by glGetActiveUniform() or glGetActiveUniformsiv().
1037 // Get uniform values with glGetUniform*() and put to valuesDst. Uniforms that get -1 from glGetUniformLocation() get glu::TYPE_INVALID.
1040 bool checkUniformDefaultValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms);
1041 // Assign the basicUniforms[].finalValue values for uniforms. \note rnd parameter is for booleans (true can be any nonzero value).
1043 // Compare the uniform values given in values (obtained with glGetUniform*()) with the basicUniform.finalValue values.
1044 bool compareUniformValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms);
1781 bool UniformCase::checkUniformDefaultValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms)
1786 DE_ASSERT(values.size() == basicUniforms.size());
1791 const VarValue& unifValue = values[unifNdx];
2040 bool UniformCase::compareUniformValues (const vector<VarValue>& values, const vector<BasicUniform>& basicUniforms)
2048 const VarValue& unifValue = values[unifNdx];
2135 log << TestLog::Message << "Success: got all-white pixels (all uniforms have correct values)" << TestLog::EndMessage;
2301 VALUETOCHECK_INITIAL = 0, //!< Verify the initial values of the uniforms (i.e. check that they're zero).
2302 VALUETOCHECK_ASSIGNED, //!< Assign values to uniforms with glUniform*(), and check those.
2308 CHECKMETHOD_GET_UNIFORM = 0, //!< Check values with glGetUniform*().
2309 CHECKMETHOD_RENDER, //!< Check values by rendering with the value-checking shader.
2359 case VALUETOCHECK_INITIAL: return "Check initial uniform values (zeros)";
2360 case VALUETOCHECK_ASSIGNED: return "Check assigned uniform values";
2379 case CHECKMETHOD_GET_UNIFORM: return "Verify values with glGetUniform*()";
2380 case CHECKMETHOD_RENDER: return "Verify values by rendering";
2399 case ASSIGNMETHOD_POINTER: return "Assign values by-pointer";
2400 case ASSIGNMETHOD_VALUE: return "Assign values by-value";
2439 vector<VarValue> values;
2443 const bool success = getUniforms(values, basicUniforms, program.getProgram());
2451 const ScopedLogSection section(log, "ValueCheck", "Verify that the reported values match the assigned values");
2452 const bool success = compareUniformValues(values, basicUniforms);
2461 const ScopedLogSection section(log, "ValueCheck", "Verify that the uniforms have correct initial values (zeros)");
2462 const bool success = checkUniformDefaultValues(values, basicUniforms);
2541 PERFORM_AND_CHECK(checkUniformDefaultValues(uniformDefaultValues, basicUniforms), "DefaultValueCheck", "Verify that the uniforms have correct initial values (zeros)");
2555 PERFORM_AND_CHECK(compareUniformValues(uniformValues, basicUniforms), "ValueCheck", "Verify that the reported values match the assigned values");
2727 // Cases testing uniform values.
2733 // Cases checking uniforms' initial values (all must be zeros), with glGetUniform*() or by 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.
2788 // Cases that first assign values to each uniform, then check the values with glGetUniform*() or by rendering.