Lines Matching refs:uniformBlock
401 const UniformBlock &uniformBlock = *uniformBlocks[uniformBlockIndex]; in getActiveUniformBlockiv() local
406 *params = static_cast<GLint>(uniformBlock.dataSize); in getActiveUniformBlockiv()
409 …*params = static_cast<GLint>(uniformBlock.name.size() + 1 + (uniformBlock.isArrayElement() ? 3 : 0… in getActiveUniformBlockiv()
412 *params = static_cast<GLint>(uniformBlock.memberUniformIndexes.size()); in getActiveUniformBlockiv()
416 …for(unsigned int blockMemberIndex = 0; blockMemberIndex < uniformBlock.memberUniformIndexes.size()… in getActiveUniformBlockiv()
418 …params[blockMemberIndex] = static_cast<GLint>(uniformBlock.memberUniformIndexes[blockMemberIndex]); in getActiveUniformBlockiv()
423 *params = static_cast<GLint>(uniformBlock.isReferencedByVertexShader()); in getActiveUniformBlockiv()
426 *params = static_cast<GLint>(uniformBlock.isReferencedByFragmentShader()); in getActiveUniformBlockiv()
440 const UniformBlock &uniformBlock = *uniformBlocks[blockIndex]; in getUniformBlockIndex() local
441 if(uniformBlock.name == baseName) in getUniformBlockIndex()
443 const bool arrayElementZero = (subscript == GL_INVALID_INDEX && uniformBlock.elementIndex == 0); in getUniformBlockIndex()
444 if(subscript == uniformBlock.elementIndex || arrayElementZero) in getUniformBlockIndex()
1159 UniformBlock &uniformBlock = *uniformBlocks[uniformBlockIndex]; in applyUniformBuffers() local
1162 if(!uniformBlock.isReferencedByVertexShader() && !uniformBlock.isReferencedByFragmentShader()) in applyUniformBuffers()
1169 if(uniformBlock.isReferencedByVertexShader()) in applyUniformBuffers()
1174 if(uniformBlock.isReferencedByFragmentShader()) in applyUniformBuffers()
1842 const glsl::UniformBlock &uniformBlock = vertexUniformBlocks[blockIndex]; in linkUniformBlocks() local
1843 if(!defineUniformBlock(vertexShader, uniformBlock)) in linkUniformBlocks()
1850 const glsl::UniformBlock &uniformBlock = fragmentUniformBlocks[blockIndex]; in linkUniformBlocks() local
1851 if(!defineUniformBlock(fragmentShader, uniformBlock)) in linkUniformBlocks()
2710 const UniformBlock &uniformBlock = *uniformBlocks[index]; in getActiveUniformBlockName() local
2714 std::string string = uniformBlock.name; in getActiveUniformBlockName()
2716 if(uniformBlock.isArrayElement()) in getActiveUniformBlockName()
2719 elementIndex << uniformBlock.elementIndex; in getActiveUniformBlockName()
2747 const UniformBlock &uniformBlock = *uniformBlocks[uniformBlockIndex]; in getActiveUniformBlockMaxLength() local
2748 if(!uniformBlock.name.empty()) in getActiveUniformBlockMaxLength()
2750 size_t length = uniformBlock.name.length() + 1; in getActiveUniformBlockMaxLength()
2753 const int arrayLength = (uniformBlock.isArrayElement() ? 3 : 0); in getActiveUniformBlockMaxLength()