Home | History | Annotate | Download | only in libGL

Lines Matching defs:Uniform

41 	Uniform::Uniform(GLenum type, GLenum precision, const std::string &name, unsigned int arraySize) : type(type), precision(precision), name(name), arraySize(arraySize)
52 Uniform::~Uniform()
57 bool Uniform::isArray() const
62 int Uniform::size() const
67 int Uniform::registerCount() const
300 Uniform *targetUniform = uniforms[uniformIndex[location].index];
307 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
348 Uniform *targetUniform = uniforms[uniformIndex[location].index];
355 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
396 Uniform *targetUniform = uniforms[uniformIndex[location].index];
403 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
444 Uniform *targetUniform = uniforms[uniformIndex[location].index];
451 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
492 Uniform *targetUniform = uniforms[uniformIndex[location].index];
504 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
522 Uniform *targetUniform = uniforms[uniformIndex[location].index];
534 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
552 Uniform *targetUniform = uniforms[uniformIndex[location].index];
564 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
582 Uniform *targetUniform = uniforms[uniformIndex[location].index];
589 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
637 Uniform *targetUniform = uniforms[uniformIndex[location].index];
644 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
690 Uniform *targetUniform = uniforms[uniformIndex[location].index];
697 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
743 Uniform *targetUniform = uniforms[uniformIndex[location].index];
750 return false; // Attempting to write an array to a non-array uniform is an INVALID_OPERATION
796 Uniform *targetUniform = uniforms[uniformIndex[location].index];
844 Uniform *targetUniform = uniforms[uniformIndex[location].index];
905 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1300 const glsl::Uniform &uniform = activeUniforms[uniformIndex];
1302 if(!defineUniform(shader->getType(), uniform.type, uniform.precision, uniform.name, uniform.arraySize, uniform.registerIndex))
1354 Uniform *uniform = 0;
1359 uniform = uniforms[uniformIndex[location].index];
1361 if(uniform->type != type)
1363 appendToInfoLog("Types for uniform %s do not match between the vertex and fragment shader", uniform->name.c_str());
1367 if(uniform->precision != precision)
1369 appendToInfoLog("Precisions for uniform %s do not match between the vertex and fragment shader", uniform->name.c_str());
1375 uniform = new Uniform(type, precision, name, arraySize);
1378 if(!uniform)
1385 uniform->vsRegisterIndex = registerIndex;
1389 uniform->psRegisterIndex = registerIndex;
1395 uniforms.push_back(uniform);
1398 for(int i = 0; i < uniform->size(); i++)
1406 if(registerIndex + uniform->registerCount() > MAX_VERTEX_UNIFORM_VECTORS)
1414 if(registerIndex + uniform->registerCount() > MAX_FRAGMENT_UNIFORM_VECTORS)
1439 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1468 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1497 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1526 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1555 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1584 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1613 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1630 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1657 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1685 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1702 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1729 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1792 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1821 Uniform *targetUniform = uniforms[uniformIndex[location].index];
1850 Uniform *targetUniform = uniforms[uniformIndex[location].index];
2225 appendToInfoLog("Sampler uniform (%d) exceeds MAX_COMBINED_TEXTURE_IMAGE_UNITS (%d)", unit, MAX_COMBINED_TEXTURE_IMAGE_UNITS);
2260 appendToInfoLog("Sampler uniform (%d) exceeds MAX_COMBINED_TEXTURE_IMAGE_UNITS (%d)", unit, MAX_COMBINED_TEXTURE_IMAGE_UNITS);