Lines Matching defs:variable

341 /** Retrieves base type of user-provided variable type. (eg. VARIABLE_TYPE_DOUBLE for double-precision
421 TCU_FAIL("Unrecognized variable type");
428 /** Returns size (in bytes) of a single component of a base variable type.
430 * @param type Base variable type to use for the query.
458 TCU_FAIL("Unrecognized variable type");
524 /** Returns a single-precision equivalent of a double-precision floating-point variable
527 * @param type Double-precision variable type. Only VARIABLE_TYPE_D* variable types
580 TCU_FAIL("Unrecognized variable type");
587 /** Returns GL data type enum corresponding to user-provided base variable type.
589 * @param type Base variable type to return corresponding GLenum value for.
618 TCU_FAIL("Unrecognized variable type");
627 * @param type Type of variable
745 TCU_FAIL("Unrecognized variable type");
896 /** Returns number of columns user-specified matrix variable type describes.
978 * variable type.
1039 /** Get number of rows for given variable type
1041 * @param type Type of variable
1119 /** Returns variable type of a matrix constructed by multiplying two matrices.
1155 TCU_FAIL("Unrecognized amount of rows in result variable");
1178 TCU_FAIL("Unrecognized amount of rows in result variable");
1201 TCU_FAIL("Unrecognized amount of rows in result variable");
1210 TCU_FAIL("Unrecognized amount of columns in result variable");
1218 /** Returns a string holding the value represented by user-provided variable, for which
1219 * the data are represented in @param type variable type.
1247 TCU_FAIL("Unrecognized variable type requested");
1254 /** Returns variable type of a transposed matrix of user-specified variable type.
1258 * @return Transposed matrix variable type.
1296 TCU_FAIL("Unrecognized double-precision matrix variable type.");
1330 * variable type.
1459 TCU_FAIL("Unrecognized variable type");
1511 /** Tells whether user-specified variable type corresponds to a matrix type.
1515 * @return true if the variable type describes a matrix, false otherwise.
1527 /** Tells whether user-specified variable type is scalar.
1529 * @return true if @param type is a scalar variable type, false otherwise.
2168 * the size of the uniform variable declared in the shader does not
2174 * glUniformMatrix*() are used to load a uniform variable of type
2214 * greater than 1 and the indicated uniform variable is not an
2215 * array variable.
8167 TCU_FAIL("Unrecognized variable type");
8354 /* Add local variable declarations */
8407 /* Add local variable declarations */
8463 /* Add local variable declarations */
8519 /* Add local variable declarations. */
8579 /* Add local variable declarations */
9019 const _variable& variable = *variables_iterator;
9021 Utils::getNumberOfComponentsForVariableType(variable.type) * variable.array_size * sizeof(double));
9127 * @param variables Vector of variable descriptors defining properties of
9201 << "), with the following variable types used as varyings:"
9204 /* List the variable types that failed the test */
9213 } /* for (all variable types) */
9215 /* Log the variable contents */
9251 * @param variables Holds all test variable descriptors to be used for the iteration.
9267 const _variable& variable = *variables_iterator;
9269 n_varyings += variable.array_size;
9277 const _variable& variable = *variables_iterator;
9279 for (unsigned int array_index = 0; array_index < variable.array_size; ++array_index, ++n_varying)
9286 if (variable.array_size > 1)
9303 /** Retrieves body of a shader that defines input variable of user-specified type & array size
9306 * @param input_variable_type Variable type to use for input variable declaration.
9307 * @param array_size 1 if the variable should not be arrayed; otherwise defines size
9308 * of the arrayed variable.
9358 /** Retrieves body of a shader that defines double-precision floating-point output variable. (case b) ).
9360 * @param input_variable_type Variable type to use for input variable declaration.
9361 * @param array_size 1 if the variable should not be arrayed; otherwise defines size
9362 * of the arrayed variable.
9415 /* Add output variable */
9445 /* Local variable declaration */
9489 } /* for (all variable types) */
9559 } /* for (all variable types) */
9649 } /* for (all variable types) */
9737 } /* for (all variable types) */
9813 } /* for (all variable types) */
9824 * @param prefix Prefix to use for variable names.
9827 * of the variable ( eg. (layout location=X) )
9855 } /* for (all user-specified variable types) */
9893 /* Set output variable values */
9954 } /* for (all variable types) */
10124 << "A fragment shader with double-precision output variable compiled successfully."
10142 } /* for (all variable types) */
10164 ((n_tested_variables % 2) == 0) ? 1 /* non-arrayed variable */ : 2; /* arrayed variable */
10176 { //if the number of components for this variable is larger than the max_components_per_stage, then skip it.
10216 log_sstream << "Test variable values as retrieved from geometry shader:\n";
10223 /* Read the variable contents. We only care about the set of varyings emitted
10231 const _variable& variable = *variables_iterator;
10232 const Utils::_variable_type& base_variable_type = Utils::getBaseVariableType(variable.type);
10233 const unsigned int n_components = Utils::getNumberOfComponentsForVariableType(variable.type);
10235 for (unsigned int array_index = 0; array_index < variable.array_size; ++array_index)
10239 if (variable.array_size > 1)
10299 const _variable& variable = *variable_iterator;
10300 const bool is_matrix_type = Utils::isMatrixVariableType(variable.type);
10301 const unsigned int n_total_components = Utils::getNumberOfComponentsForVariableType(variable.type);
10307 n_columns = Utils::getNumberOfColumnsForVariableType(variable.type);
10319 for (unsigned int index = 0; index < n_columns * variable.array_size; ++index)
10327 gl.vertexAttribL1dv(variable.attribute_location + index, data);
10335 gl.vertexAttribL2dv(variable.attribute_location + index, data);
10343 gl.vertexAttribL3dv(variable.attribute_location + index, data);
10351 gl.vertexAttribL4dv(variable.attribute_location + index, data);
10364 gl.disableVertexAttribArray(variable.attribute_location + index);
10528 /** Retrieves all argument lists that can be used to initialize a variable of user-specified
10570 /* Matrix variable types can be defined by a combination of non-matrix variable types OR
10571 * a single matrix variable type.
10604 /* Now for a combination of non-matrix variable types.. */
10743 /** Returns a GLSL line that defines and initializes a variable as described by
10978 /* Construct a set of argument lists valid for the variable type considered */
10996 } /* for (all variable types) */
11398 * for the result variable if either of the matrices is not square.
11439 } /* for (all variable components) */
11471 } /* for (all variable components) */
11648 /* Iterate through all variable types we want to test */
11678 } /* for (all variable types) */
11756 /* Generate as many components as will be expected for the result variable */
11866 m_testCtx.getLog() << tcu::TestLog::Message << "Value(s) generated for variable type ["
11896 "variable type ["
11915 "variable type ["
11934 "variable type ["
11954 "variable type ["
11976 << "Invalid value was reported for matrix variable type, for which "
11977 " operator checks are not executed; variable type ["
12009 /** Maps variable type with enumeration Utils::_variable_type
12883 /** Details of variable type
12980 /** Maps variable type with enumeration Utils::_variable_type
13098 /** Unary function class. It treats input argument as one variable.
14734 /** Logs variable of given type: name (type) [values]
14737 * @param name Name of variable
14738 * @param type Type of variable