Home | History | Annotate | Download | only in hlsl

Lines Matching refs:compString

574     TString compString = fields;
578 for (size_t c = 0; c < compString.size(); ++c) {
579 if (compString[c] == '_') {
581 error(loc, "matrix component swizzle has too many components", compString.c_str(), "");
584 if (c > compString.size() - 3 ||
585 ((compString[c+1] == 'm' || compString[c+1] == 'M') && c > compString.size() - 4)) {
586 error(loc, "matrix component swizzle missing", compString.c_str(), "");
597 if (compString[pos] == 'm' || compString[pos] == 'M') {
602 comp.coord1 = compString[pos+0] - '0' + bias;
603 comp.coord2 = compString[pos+1] - '0' + bias;
605 error(loc, "matrix row component out of range", compString.c_str(), "");
609 error(loc, "matrix column component out of range", compString.c_str(), "");