Home
last modified time | relevance | path

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

/external/deqp-deps/glslang/glslang/MachineIndependent/
DParseContextBase.cpp471 void TParseContextBase::parseSwizzleSelector(const TSourceLoc& loc, const TString& compString, int … in parseSwizzleSelector() argument
475 if (compString.size() > MaxSwizzleSelectors) in parseSwizzleSelector()
476 error(loc, "vector swizzle too long", compString.c_str(), ""); in parseSwizzleSelector()
486 int size = std::min(MaxSwizzleSelectors, (int)compString.size()); in parseSwizzleSelector()
488 switch (compString[i]) { in parseSwizzleSelector()
542 error(loc, "unknown swizzle selection", compString.c_str(), ""); in parseSwizzleSelector()
550 error(loc, "vector swizzle selection out of range", compString.c_str(), ""); in parseSwizzleSelector()
556 error(loc, "vector swizzle selectors not from the same set", compString.c_str(), ""); in parseSwizzleSelector()
/external/swiftshader/src/OpenGL/compiler/
DParseHelper.cpp106 bool TParseContext::parseVectorFields(const TString& compString, int vecSize, TVectorFields& fields… in parseVectorFields() argument
108 fields.num = (int) compString.size(); in parseVectorFields()
110 error(line, "illegal vector field selection", compString.c_str()); in parseVectorFields()
121 switch (compString[i]) { in parseVectorFields()
171 error(line, "illegal vector field selection", compString.c_str()); in parseVectorFields()
178 error(line, "vector field selection out of range", compString.c_str()); in parseVectorFields()
184 error(line, "illegal - vector component fields not from the same set", compString.c_str()); in parseVectorFields()
/external/deqp-deps/glslang/hlsl/
DhlslParseHelper.cpp574 TString compString = fields; in parseMatrixSwizzleSelector() local
578 for (size_t c = 0; c < compString.size(); ++c) { in parseMatrixSwizzleSelector()
579 if (compString[c] == '_') { in parseMatrixSwizzleSelector()
581 … error(loc, "matrix component swizzle has too many components", compString.c_str(), ""); in parseMatrixSwizzleSelector()
584 if (c > compString.size() - 3 || in parseMatrixSwizzleSelector()
585 … ((compString[c+1] == 'm' || compString[c+1] == 'M') && c > compString.size() - 4)) { in parseMatrixSwizzleSelector()
586 error(loc, "matrix component swizzle missing", compString.c_str(), ""); in parseMatrixSwizzleSelector()
597 if (compString[pos] == 'm' || compString[pos] == 'M') { in parseMatrixSwizzleSelector()
602 comp.coord1 = compString[pos+0] - '0' + bias; in parseMatrixSwizzleSelector()
603 comp.coord2 = compString[pos+1] - '0' + bias; in parseMatrixSwizzleSelector()
[all …]