Lines Matching defs:desc

1063 bool verifyVarying(Program& program, const std::string& parent_name, const Variable::Descriptor& desc,
1076 const std::string& name = Utils::Variable::GetReference(parent_name, desc, Utils::Variable::BASIC, 0);
1087 stream << "Failed to query program for varying: " << desc.m_name << ". Reason: " << exc.what() << "\n";
1094 if (location != desc.m_expected_location)
1096 stream << "Attribute: " << desc.m_name << " - invalid location: " << location
1097 << " expected: " << desc.m_expected_location << std::endl;
1100 if (component != desc.m_expected_component)
1102 stream << "Attribute: " << desc.m_name << " - invalid component: " << component
1103 << " expected: " << desc.m_expected_component << std::endl;
1277 Utils::Variable::Descriptor& desc = interface->m_members[i];
1279 if (offsets[i] != (GLint)desc.m_offset)
1281 stream << "Uniform: " << desc.m_name << " - invalid offset: " << offsets[i]
1282 << " expected: " << desc.m_offset << std::endl;
1348 Utils::Variable::Descriptor& desc = interface->m_members[i];
1350 if (offset != (GLint)desc.m_offset)
1352 stream << "Uniform: " << desc.m_name << " - invalid offset: " << offset
1353 << " expected: " << desc.m_offset << std::endl;
6082 * @param desc Descriptor
6084 void BufferTestBase::prepareBuffer(Utils::Buffer& buffer, bufferDescriptor& desc)
6089 if (false == desc.m_initial_data.empty())
6091 size = desc.m_initial_data.size();
6092 data = &desc.m_initial_data[0];
6094 else if (false == desc.m_expected_data.empty())
6096 size = desc.m_expected_data.size();
6099 buffer.Init(desc.m_target, Utils::Buffer::StaticDraw, size, data);
6101 if (bufferDescriptor::m_non_indexed != desc.m_index)
6103 buffer.BindBase(desc.m_index);
15260 Utils::Variable* VaryingComponentsTest::prepareVarying(const Utils::Type& basic_type, const descriptor& desc,
15266 const std::string& name = prepareName(desc.m_name, desc.m_location, desc.m_component, stage, storage);
15267 const GLuint offset = desc.m_component * component_size;
15268 const std::string& qual = prepareQualifiers(desc.m_location_str, desc.m_component_str, interpolation);
15269 const GLuint size = desc.m_n_rows * basic_type.GetSize();
15270 const Utils::Type& type = Utils::Type::GetType(basic_type.m_basic_type, 1 /* n_columns */, desc.m_n_rows);
15275 var = si.Input(name.c_str(), qual.c_str() /* qualifiers */, desc.m_component /* expected_componenet */,
15276 desc.m_location /* expected_location */, type, /* built_in_type */
15282 var = si.Output(name.c_str(), qual.c_str() /* qualifiers */, desc.m_component /* expected_componenet */,
15283 desc.m_location /* expected_location */, type, /* built_in_type */
19965 const Utils::Variable::Descriptor& desc = (*it)->m_descriptor;
19967 if (0 == desc.m_name.compare("gohan"))
19969 m_gohan_location = desc.m_expected_location;
19971 else if (0 == desc.m_name.compare("chichi"))
19973 m_chichi_location = desc.m_expected_location;