Home
last modified time | relevance | path

Searched refs:mappedFullName (Results 1 – 3 of 3) sorted by relevance

/external/angle/src/tests/compiler_tests/
DShaderVariable_test.cpp54 std::string mappedFullName = "wrongName"; in TEST() local
55 EXPECT_FALSE(uni.findInfoByMappedName(mappedFullName, &leafVar, &originalFullName)); in TEST()
57 mappedFullName = "m_uni"; in TEST()
58 EXPECT_TRUE(uni.findInfoByMappedName(mappedFullName, &leafVar, &originalFullName)); in TEST()
62 mappedFullName = "m_uni[0].m_a[1].wrongName"; in TEST()
63 EXPECT_FALSE(uni.findInfoByMappedName(mappedFullName, &leafVar, &originalFullName)); in TEST()
65 mappedFullName = "m_uni[0].m_a[1].m_x"; in TEST()
66 EXPECT_TRUE(uni.findInfoByMappedName(mappedFullName, &leafVar, &originalFullName)); in TEST()
70 mappedFullName = "m_uni[0].m_a[1].m_x[0]"; in TEST()
71 EXPECT_TRUE(uni.findInfoByMappedName(mappedFullName, &leafVar, &originalFullName)); in TEST()
[all …]
/external/angle/src/compiler/translator/
DShaderVars.cpp234 bool ShaderVariable::findInfoByMappedName(const std::string &mappedFullName, in findInfoByMappedName() argument
243 size_t pos = mappedFullName.find_first_of(".["); in findInfoByMappedName()
248 if (mappedFullName != this->mappedName) in findInfoByMappedName()
256 std::string topName = mappedFullName.substr(0, pos); in findInfoByMappedName()
261 if (mappedFullName[pos] == '[') in findInfoByMappedName()
264 size_t closePos = mappedFullName.find_first_of(']'); in findInfoByMappedName()
268 originalName += mappedFullName.substr(pos, closePos - pos + 1); in findInfoByMappedName()
269 if (closePos + 1 == mappedFullName.size()) in findInfoByMappedName()
278 if (mappedFullName[closePos + 1] != '.') in findInfoByMappedName()
280 remaining = mappedFullName.substr(closePos + 2); // Skip "]." in findInfoByMappedName()
[all …]
/external/angle/include/GLSLANG/
DShaderVars.h117 bool findInfoByMappedName(const std::string &mappedFullName,