• Home
  • Raw
  • Download

Lines Matching refs:uniformIndex

364 		for(size_t location = 0; location < uniformIndex.size(); location++)  in getUniformLocation()
366 if(uniformIndex[location].name == baseName) in getUniformLocation()
368 const unsigned int index = uniformIndex[location].index; in getUniformLocation()
378 if(uniformIndex[location].element == subscript) in getUniformLocation()
502 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in setUniformfv()
507 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in setUniformfv()
517 count = std::min(size - (int)uniformIndex[location].element, count); in setUniformfv()
522 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLfloat)* numElements, in setUniformfv()
527 …GLboolean *boolParams = (GLboolean*)targetUniform->data + uniformIndex[location].element * numElem… in setUniformfv()
592 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in setUniformMatrixfv()
597 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in setUniformMatrixfv()
612 count = std::min(size - (int)uniformIndex[location].element, count); in setUniformMatrixfv()
614 …GLfloat* dst = reinterpret_cast<GLfloat*>(targetUniform->data + uniformIndex[location].element * s… in setUniformMatrixfv()
689 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in setUniform1iv()
694 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in setUniform1iv()
704 count = std::min(size - (int)uniformIndex[location].element, count); in setUniform1iv()
708 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLint), in setUniform1iv()
727 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLboolean), in setUniform1iv()
745 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in setUniformiv()
750 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in setUniformiv()
760 count = std::min(size - (int)uniformIndex[location].element, count); in setUniformiv()
765 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLint)* numElements, in setUniformiv()
777 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLboolean)* numElements, in setUniformiv()
807 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in setUniform1uiv()
812 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in setUniform1uiv()
822 count = std::min(size - (int)uniformIndex[location].element, count); in setUniform1uiv()
826 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLuint), in setUniform1uiv()
845 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLboolean), in setUniform1uiv()
863 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in setUniformuiv()
868 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in setUniformuiv()
878 count = std::min(size - (int)uniformIndex[location].element, count); in setUniformuiv()
883 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLuint)* numElements, in setUniformuiv()
895 memcpy(targetUniform->data + uniformIndex[location].element * sizeof(GLboolean)* numElements, in setUniformuiv()
925 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in getUniformfv()
930 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in getUniformfv()
943 … GLboolean *boolParams = (GLboolean*)targetUniform->data + uniformIndex[location].element * count; in getUniformfv()
952 memcpy(params, targetUniform->data + uniformIndex[location].element * count * sizeof(GLfloat), in getUniformfv()
957 GLint *intParams = (GLint*)targetUniform->data + uniformIndex[location].element * count; in getUniformfv()
967 GLuint *uintParams = (GLuint*)targetUniform->data + uniformIndex[location].element * count; in getUniformfv()
983 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in getUniformiv()
988 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in getUniformiv()
1001 GLboolean *boolParams = targetUniform->data + uniformIndex[location].element * count; in getUniformiv()
1011 GLfloat *floatParams = (GLfloat*)targetUniform->data + uniformIndex[location].element * count; in getUniformiv()
1021 memcpy(params, targetUniform->data + uniformIndex[location].element * count * sizeof(GLint), in getUniformiv()
1032 …if(location < 0 || location >= (int)uniformIndex.size() || (uniformIndex[location].index == GL_INV… in getUniformuiv()
1037 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in getUniformuiv()
1050 GLboolean *boolParams = targetUniform->data + uniformIndex[location].element * count; in getUniformuiv()
1060 GLfloat *floatParams = (GLfloat*)targetUniform->data + uniformIndex[location].element * count; in getUniformuiv()
1070 memcpy(params, targetUniform->data + uniformIndex[location].element * count * sizeof(GLuint), in getUniformuiv()
1091 GLint numUniforms = static_cast<GLint>(uniformIndex.size()); in applyUniforms()
1094 if((uniformIndex[location].element != 0) || (uniformIndex[location].index == GL_INVALID_INDEX)) in applyUniforms()
1099 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in applyUniforms()
1857 uniformIndex.push_back(UniformLocation(glslUniform.name, i, index)); in defineUniform()
2106 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in applyUniform()
2389 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in applyUniform1iv()
2491 Uniform *targetUniform = uniforms[uniformIndex[location].index]; in applyUniform1uiv()
2663 uniformIndex.clear(); in unlink()
2849 for(size_t uniformIndex = 0; uniformIndex < numUniforms; uniformIndex++) in getActiveUniformMaxLength() local
2851 if(!uniforms[uniformIndex]->name.empty()) in getActiveUniformMaxLength()
2853 int length = (int)(uniforms[uniformIndex]->name.length() + 1); in getActiveUniformMaxLength()
2854 if(uniforms[uniformIndex]->isArray()) in getActiveUniformMaxLength()