Lines Matching refs:Caps
373 GLint ProgramBinary::getSamplerMapping(SamplerType type, unsigned int samplerIndex, const Caps &caps)
380 ASSERT(samplerIndex < caps.maxTextureImageUnits);
387 ASSERT(samplerIndex < caps.maxVertexTextureImageUnits);
396 if (logicalTextureUnit >= 0 && logicalTextureUnit < static_cast<GLint>(caps.maxCombinedTextureImageUnits))
985 bool ProgramBinary::applyUniformBuffers(const std::vector<gl::Buffer*> boundBuffers, const Caps &caps)
1018 ASSERT(registerIndex < caps.maxVertexUniformBlocks);
1026 ASSERT(registerIndex < caps.maxFragmentUniformBlocks);
1571 const std::vector<std::string>& transformFeedbackVaryings, GLenum transformFeedbackBufferMode, const Caps &caps)
1587 mSamplersPS.resize(caps.maxTextureImageUnits);
1588 mSamplersVS.resize(caps.maxVertexTextureImageUnits);
1613 if (!linkUniforms(infoLog, *vertexShader, *fragmentShader, caps))
1628 if (!linkUniformBlocks(infoLog, *vertexShader, *fragmentShader, caps))
1634 transformFeedbackBufferMode, &mTransformFeedbackLinkedVaryings, caps))
1853 bool ProgramBinary::linkUniforms(InfoLog &infoLog, const Shader &vertexShader, const Shader &fragmentShader, const Caps &caps)
1906 if (!indexUniforms(infoLog, caps))
1989 bool ProgramBinary::indexSamplerUniform(const LinkedUniform &uniform, InfoLog &infoLog, const Caps &caps)
2004 unsigned int maxVertexVectors = mProgram->getRenderer()->getReservedVertexUniformVectors() + caps.maxVertexUniformVectors;
2008 caps.maxVertexUniformVectors);
2023 unsigned int maxFragmentVectors = mProgram->getRenderer()->getReservedFragmentUniformVectors() + caps.maxFragmentUniformVectors;
2027 caps.maxFragmentUniformVectors);
2035 bool ProgramBinary::indexUniforms(InfoLog &infoLog, const Caps &caps)
2043 if (!indexSamplerUniform(uniform, infoLog, caps))
2133 bool ProgramBinary::linkUniformBlocks(InfoLog &infoLog, const Shader &vertexShader, const Shader &fragmentShader, const Caps &caps)
2169 if (!defineUniformBlock(infoLog, vertexShader, interfaceBlock, caps))
2183 if (!defineUniformBlock(infoLog, fragmentShader, interfaceBlock, caps))
2197 const Caps &caps) const
2221 componentCount > caps.maxTransformFeedbackSeparateComponents)
2224 linkedVaryings[j].name.c_str(), componentCount, caps.maxTransformFeedbackSeparateComponents);
2240 if (transformFeedbackBufferMode == GL_INTERLEAVED_ATTRIBS && totalComponents > caps.maxTransformFeedbackInterleavedComponents)
2243 totalComponents, caps.maxTransformFeedbackInterleavedComponents);
2290 bool ProgramBinary::defineUniformBlock(InfoLog &infoLog, const Shader &shader, const sh::InterfaceBlock &interfaceBlock, const Caps &caps)
2351 interfaceBlockRegister + uniformBlockElement, caps))
2361 bool ProgramBinary::assignUniformBlockRegister(InfoLog &infoLog, UniformBlock *uniformBlock, GLenum shader, unsigned int registerIndex, const Caps &caps)
2366 if (registerIndex - mProgram->getRenderer()->getReservedVertexUniformBuffers() >= caps.maxVertexUniformBlocks)
2368 infoLog.append("Vertex shader uniform block count exceed GL_MAX_VERTEX_UNIFORM_BLOCKS (%u)", caps.maxVertexUniformBlocks);
2375 if (registerIndex - mProgram->getRenderer()->getReservedFragmentUniformBuffers() >= caps.maxFragmentUniformBlocks)
2377 infoLog.append("Fragment shader uniform block count exceed GL_MAX_FRAGMENT_UNIFORM_BLOCKS (%u)", caps.maxFragmentUniformBlocks);
2647 void ProgramBinary::validate(InfoLog &infoLog, const Caps &caps)
2650 if (!validateSamplers(&infoLog, caps))
2660 bool ProgramBinary::validateSamplers(InfoLog *infoLog, const Caps &caps)
2667 std::vector<GLenum> textureUnitTypes(caps.maxCombinedTextureImageUnits, GL_NONE);