Lines Matching defs:source

170 						print("ERROR: Inconsistent source/enable for shader stage %s!\n", getShaderTypeName((ShaderType)shaderStageNdx));
463 static string removeExtraIndentation (const string& source)
467 for (int ndx = 0; ndx < (int)source.length() && isWhitespace(source[ndx]); ndx++)
468 numIndentChars += source[ndx] == '\t' ? 4 : 1;
476 for (int pos = 0; pos < (int)source.length(); pos++)
478 char c = source[pos];
486 if (source[pos] == '\r' && source[pos+1] == '\n')
813 case TOKEN_SHADER_SOURCE: return "source";
1301 string source;
1305 source = parseShaderSource(m_curTokenStr.c_str());
1310 case TOKEN_VERTEX: program.sources.sources[SHADERTYPE_VERTEX].push_back(source); break;
1311 case TOKEN_FRAGMENT: program.sources.sources[SHADERTYPE_FRAGMENT].push_back(source); break;
1312 case TOKEN_TESSELLATION_CONTROL: program.sources.sources[SHADERTYPE_TESSELLATION_CONTROL].push_back(source); break;
1313 case TOKEN_TESSELLATION_EVALUATION: program.sources.sources[SHADERTYPE_TESSELLATION_EVALUATION].push_back(source); break;
1314 case TOKEN_GEOMETRY: program.sources.sources[SHADERTYPE_GEOMETRY].push_back(source); break;
1395 string source;
1399 source = parseShaderSource(m_curTokenStr.c_str());
1404 case TOKEN_VERTEX: vertexSources.push_back(source); break;
1405 case TOKEN_FRAGMENT: fragmentSources.push_back(source); break;
1406 case TOKEN_TESSELLATION_CONTROL: tessellationCtrlSources.push_back(source); break;
1407 case TOKEN_TESSELLATION_EVALUATION: tessellationEvalSources.push_back(source); break;
1408 case TOKEN_GEOMETRY: geometrySources.push_back(source); break;
1413 bothSource = source;