Lines Matching refs:test_case

4304 	const testCase& test_case = m_test_cases[test_case_index];
4307 << "T1:" << Utils::getTypeName(test_case.m_types.m_t1, test_case.m_n_cols,
4308 test_case.m_n_rows)
4309 << " T2:" << Utils::getTypeName(test_case.m_types.m_t2, test_case.m_n_cols,
4310 test_case.m_n_rows)
4505 const testCase& test_case = getCurrentTestCase();
4506 const GLchar* t1 = Utils::getTypeName(test_case.m_types.m_t1, test_case.m_n_cols, test_case.m_n_rows);
4507 const GLchar* t2 = Utils::getTypeName(test_case.m_types.m_t2, test_case.m_n_cols, test_case.m_n_rows);
4508 const std::string& value_list = getValueList(test_case.m_n_cols, test_case.m_n_rows);
4565 const testCase& test_case = getCurrentTestCase();
4567 switch (test_case.m_types.m_t2)
4570 program.uniform("uni_left", Utils::DOUBLE, test_case.m_n_cols, test_case.m_n_rows, double_data);
4571 program.uniform("uni_right", Utils::DOUBLE, test_case.m_n_cols, test_case.m_n_rows, double_data);
4574 program.uniform("uni_left", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data);
4575 program.uniform("uni_right", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data);
4578 program.uniform("uni_left", Utils::INT, test_case.m_n_cols, test_case.m_n_rows, int_data);
4579 program.uniform("uni_right", Utils::INT, test_case.m_n_cols, test_case.m_n_rows, int_data);
4582 program.uniform("uni_left", Utils::UINT, test_case.m_n_cols, test_case.m_n_rows, uint_data);
4583 program.uniform("uni_right", Utils::UINT, test_case.m_n_cols, test_case.m_n_rows, uint_data);
4619 testCase test_case = { types, 1, 1 };
4621 m_test_cases.push_back(test_case);
4628 testCase test_case = { types, col, row };
4630 m_test_cases.push_back(test_case);
5954 const Utils::qualifierSet& test_case = getCurrentTestCase();
5961 Utils::prepareVariableStrings(in_stage, Utils::INPUT, test_case, "vec4", "test", in_test_decl, in_test_ref);
5962 Utils::prepareVariableStrings(in_stage, Utils::OUTPUT, test_case, "vec4", "test", out_test_decl, out_test_ref);
6337 const Utils::qualifierSet& test_case = getCurrentTestCase();
6347 Utils::prepareVariableStrings(in_stage, Utils::INPUT, test_case, "vec4", "test", in_test_decl, in_test_ref);
6350 Utils::prepareBlockVariableStrings(in_stage, Utils::INPUT, test_case, "vec4", "test", "input_block",
6358 Utils::prepareVariableStrings(in_stage, Utils::OUTPUT, test_case, "vec4", "test", out_test_decl, out_test_ref);
6361 Utils::prepareBlockVariableStrings(in_stage, Utils::OUTPUT, test_case, "vec4", "test", "output_block",
6706 const Utils::qualifierSet& test_case = getCurrentTestCase();
6710 Utils::prepareVariableStrings(in_stage, Utils::UNIFORM, test_case, "vec4", "test", uni_declaration, uni_reference);
9811 const GLchar* BindingUniformInvalidTest::getCaseString(TESTCASES test_case)
9813 (void)test_case;
11562 const GLchar* BindingSamplerInvalidTest::getCaseString(TESTCASES test_case)
11564 (void)test_case;
13400 const GLchar* BindingImageInvalidTest::getCaseString(TESTCASES test_case)
13402 (void)test_case;
13719 testCase test_case = { l_init, 1, 1 };
13729 test_case.m_n_rows = row;
13731 m_test_cases.push_back(test_case);
13745 test_case.m_n_cols = col;
13746 test_case.m_n_rows = row;
13748 m_test_cases.push_back(test_case);
13756 m_test_cases.push_back(test_case);
13771 test_case.m_n_rows = 4;
13772 m_test_cases.push_back(test_case);
13790 const testCase& test_case = m_test_cases[m_current_test_case_index];
13794 switch (test_case.m_initializer)
13837 const testCase& test_case = m_test_cases[m_current_test_case_index];
13841 switch (test_case.m_initializer)
13846 value = (GLfloat)(test_case.m_n_cols * test_case.m_n_rows);
13854 value = (GLfloat)(test_case.m_n_cols * test_case.m_n_rows) * 4.0f;
13903 const testCase& test_case = m_test_cases[m_current_test_case_index];
13907 switch (test_case.m_initializer)
13910 initialization.append(getVectorInitializer(0 /*column*/, test_case.m_n_rows));
13916 initialization.append(getVectorArrayList(test_case.m_n_cols, test_case.m_n_rows));
13924 initialization.append(getVectorArrayCtr(test_case.m_n_cols, test_case.m_n_rows));
13931 initialization.append(getVectorInitializer(0 /* column */, test_case.m_n_rows));
13933 initialization.append(getVectorInitializer(2 /* column */, test_case.m_n_rows));
13949 initialization.append(getVectorArrayList(4 /* columns */, test_case.m_n_rows));
13956 initialization.append(getVectorArrayCtr(4 /* columns */, test_case.m_n_rows));
13968 initialization.append(getVectorArrayList(test_case.m_n_cols, test_case.m_n_rows));
13983 const std::string& type_name = Utils::getTypeName(Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows);
13991 for (GLuint col = 0; col < test_case.m_n_cols; ++col)
13993 initialization.append(getVectorValues(col, test_case.m_n_rows));
13995 if (col + 1 < test_case.m_n_cols)
14019 initialization.append(getVectorInitializer(0 /* column */, test_case.m_n_rows));
14021 initialization.append(getVectorInitializer(2 /* column */, test_case.m_n_rows));
14216 const testCase& test_case = m_test_cases[m_current_test_case_index];
14220 switch (test_case.m_initializer)
14223 message << "List. Single vec" << test_case.m_n_rows;
14226 message << "List. Single mat" << test_case.m_n_cols << "x" << test_case.m_n_rows;
14229 message << "Ctr. Single mat" << test_case.m_n_cols << "x" << test_case.m_n_rows;
14256 message << "Ctr. Array of vec" << test_case.m_n_rows;
14259 message << "List. Array of vec" << test_case.m_n_rows;
14262 message << "Ctr. Array of mat" << test_case.m_n_cols << "x" << test_case.m_n_rows;
14265 message << "List. Array of mat" << test_case.m_n_cols << "x" << test_case.m_n_rows;
14280 message << "List. Unsized array of vec" << test_case.m_n_rows;
14283 message << "List. Unsized array of mat" << test_case.m_n_cols << "x" << test_case.m_n_rows;
14303 const testCase& test_case = m_test_cases[m_current_test_case_index];
14307 switch (test_case.m_initializer)
14310 sum = getVectorSum(var, test_case.m_n_rows);
14316 sum = getVectorArraySum("variable[INDEX]", test_case.m_n_cols, test_case.m_n_rows);
14321 sum = getVectorSum("variable.member_a", test_case.m_n_rows);
14323 sum.append(getVectorSum("variable.member_b", test_case.m_n_rows));
14336 sum = getVectorArraySum("variable[INDEX]", 4 /* columns */, test_case.m_n_rows);
14343 sum.append(getVectorArraySum("variable[0][INDEX]", test_case.m_n_cols, test_case.m_n_rows));
14345 sum.append(getVectorArraySum("variable[1][INDEX]", test_case.m_n_cols, test_case.m_n_rows));
14347 sum.append(getVectorArraySum("variable[2][INDEX]", test_case.m_n_cols, test_case.m_n_rows));
14349 sum.append(getVectorArraySum("variable[3][INDEX]", test_case.m_n_cols, test_case.m_n_rows));
14355 sum.append(getVectorArraySum("variable[INDEX].member_a", 4, test_case.m_n_rows));
14357 sum.append(getVectorArraySum("variable[INDEX].member_b", 4, test_case.m_n_rows));
14414 const testCase& test_case = m_test_cases[m_current_test_case_index];
14443 switch (test_case.m_initializer)
14493 const testCase& test_case = m_test_cases[m_current_test_case_index];
14505 switch (test_case.m_initializer)
14516 type_name = Utils::getTypeName(Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows);
15341 const testCase& test_case = m_test_cases[m_current_test_case_index];
15344 << Utils::getTypeName(test_case.m_type, test_case.m_n_cols, test_case.m_n_rows)
15395 const testCase& test_case = m_test_cases[m_current_test_case_index];
15397 switch (test_case.m_type)
15400 program.uniform("uni_variable", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data);
15403 program.uniform("uni_variable", Utils::INT, 1 /* columns */, test_case.m_n_rows, int_data);
15406 program.uniform("uni_variable", Utils::UINT, 1 /* columns */, test_case.m_n_rows, uint_data);
15437 const testCase& test_case = m_test_cases[m_current_test_case_index];
15455 switch (test_case.m_type)
15479 switch (test_case.m_type)
15482 for (GLuint col = 0; col < test_case.m_n_cols; ++col)
15485 const GLint size = test_case.m_n_rows;
15486 const GLvoid* offset = (const GLvoid*)(test_case.m_n_rows * sizeof(GLfloat) * col);
15493 gl.vertexAttribIPointer(variable_loc, test_case.m_n_rows /* size */, GL_INT /* type */, 0 /* stride */,
15498 gl.vertexAttribIPointer(variable_loc, test_case.m_n_rows /* size */, GL_UNSIGNED_INT /* type */, 0 /* stride */,
15508 for (GLuint col = 0; col < test_case.m_n_cols; ++col)
15524 testCase test_case = { Utils::UINT, 1 /* n_cols */, row };
15526 m_test_cases.push_back(test_case);
15531 testCase test_case = { Utils::INT, 1 /* n_cols */, row };
15533 m_test_cases.push_back(test_case);
15538 testCase test_case = { Utils::FLOAT, 1 /* n_cols */, row };
15540 m_test_cases.push_back(test_case);
15548 testCase test_case = { Utils::FLOAT, col, row };
15550 m_test_cases.push_back(test_case);
15565 const testCase& test_case = m_test_cases[m_current_test_case_index];
15581 if (1 == test_case.m_n_cols)
15583 count *= test_case.m_n_rows;
15587 count *= test_case.m_n_cols;
15593 switch (test_case.m_type)
15627 const testCase& test_case = m_test_cases[m_current_test_case_index];
15631 if (1 == test_case.m_n_cols)
15633 initialization = getVectorInitializer(test_case.m_type, test_case.m_n_rows);
15637 initialization = getMatrixInitializer(test_case.m_n_cols, test_case.m_n_rows);
15974 const testCase& test_case = m_test_cases[m_current_test_case_index];
15979 const std::string& base_type_name = Utils::getTypeName(test_case.m_type, 1 /* cols */, 1 /* rows */);
15982 const std::string& type_name = Utils::getTypeName(test_case.m_type, test_case.m_n_cols, test_case.m_n_rows);
15992 if ((Utils::UINT == test_case.m_type) || (Utils::INT == test_case.m_type))
16047 if (1 != test_case.m_n_cols)
16164 const testCase& test_case = m_test_cases[m_current_test_case_index];
16167 const std::string& base_type_name = Utils::getTypeName(test_case.m_type, 1 /* cols */, 1 /* rows */);
16169 const std::string& type_name = Utils::getTypeName(test_case.m_type, test_case.m_n_cols, test_case.m_n_rows);
16171 if (1 != test_case.m_n_cols)