Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:uniform

29 Uniform::Uniform(GLenum type, const std::string &name, unsigned int arraySize) : type(type), name(name), arraySize(arraySize)
38 Uniform::~Uniform()
276 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
284 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
296 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
333 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
341 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
353 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
391 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
399 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
411 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
448 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
456 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
468 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
505 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
516 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
533 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
544 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
561 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
572 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
589 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
599 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
611 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
648 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
656 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
668 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
705 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
713 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
725 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
762 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
770 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
782 return false; // attempting to write an array to a non-array uniform is an INVALID_OPERATION
819 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
862 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
926 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
1657 // Returns true if succesful (uniform not already defined)
1712 Uniform *uniform = createUniform(constantDescription, name);
1714 if(!uniform)
1721 GLenum type = uniform->type;
1725 delete uniform;
1737 mUniforms.push_back(uniform);
1740 for (unsigned int i = 0; i < uniform->arraySize; ++i)
1748 Uniform *Program::createUniform(const D3DXCONSTANT_DESC &constantDescription, std::string &name)
1757 case 1: return new Uniform(GL_SAMPLER_2D, name, constantDescription.Elements);
1764 case 1: return new Uniform(GL_SAMPLER_CUBE, name, constantDescription.Elements);
1771 case 1: return new Uniform(GL_BOOL, name, constantDescription.Elements);
1772 case 2: return new Uniform(GL_BOOL_VEC2, name, constantDescription.Elements);
1773 case 3: return new Uniform(GL_BOOL_VEC3, name, constantDescription.Elements);
1774 case 4: return new Uniform(GL_BOOL_VEC4, name, constantDescription.Elements);
1781 case 1: return new Uniform(GL_INT, name, constantDescription.Elements);
1782 case 2: return new Uniform(GL_INT_VEC2, name, constantDescription.Elements);
1783 case 3: return new Uniform(GL_INT_VEC3, name, constantDescription.Elements);
1784 case 4: return new Uniform(GL_INT_VEC4, name, constantDescription.Elements);
1791 case 1: return new Uniform(GL_FLOAT, name, constantDescription.Elements);
1792 case 2: return new Uniform(GL_FLOAT_VEC2, name, constantDescription.Elements);
1793 case 3: return new Uniform(GL_FLOAT_VEC3, name, constantDescription.Elements);
1794 case 4: return new Uniform(GL_FLOAT_VEC4, name, constantDescription.Elements);
1809 case 2: return new Uniform(GL_FLOAT_MAT2, name, constantDescription.Elements);
1810 case 3: return new Uniform(GL_FLOAT_MAT3, name, constantDescription.Elements);
1811 case 4: return new Uniform(GL_FLOAT_MAT4, name, constantDescription.Elements);
1859 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
1894 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
1929 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
1965 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
1989 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2020 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2053 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2077 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2111 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2147 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2183 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2207 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2269 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2302 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2335 Uniform *targetUniform = mUniforms[mUniformIndex[location].index];
2655 unsigned int uniform;
2656 for (uniform = 0; uniform < mUniforms.size(); uniform++)
2658 if (mUniforms[uniform]->name.substr(0, 3) == "dx_")
2671 ASSERT(uniform < mUniforms.size()); // index must be smaller than getActiveUniformCount()
2675 std::string string = undecorate(mUniforms[uniform]->name);
2677 if (mUniforms[uniform]->arraySize != 1)
2691 *size = mUniforms[uniform]->arraySize;
2693 *type = mUniforms[uniform]->type;
2787 void Program::getConstantHandles(Uniform *targetUniform, D3DXHANDLE *constantPS, D3DXHANDLE *constantVS)