Lines Matching defs:uniformIdx
597 std::string genFunctionCall (ShaderSamplingType samplingType, const int uniformIdx);
726 std::string SRGBTestProgram::genFunctionCall (ShaderSamplingType samplingType, const int uniformIdx)
730 functionCall << " mediump vec4 texelColor" << uniformIdx << " = ";
736 functionCall << "texture(uTexture" << uniformIdx << ", vs_aTexCoord); \n";
741 functionCall << "textureLod(uTexture" << uniformIdx << ", vs_aTexCoord, 0.0); \n";
746 functionCall << "textureGrad(uTexture" << uniformIdx << ", vs_aTexCoord, vec2(0.0, 0.0), vec2(0.0, 0.0)); \n";
751 functionCall << "textureOffset(uTexture" << uniformIdx << ", vs_aTexCoord, ivec2(0.0, 0.0)); \n";
756 functionCall << "textureProj(uTexture" << uniformIdx << ", vec3(vs_aTexCoord, 1.0)); \n";
761 functionCall << "texelFetch(uTexture" << uniformIdx << ", ivec2(vs_aTexCoord), 0); \n";
766 functionCall << "texelFetchOffset(uTexture" << uniformIdx << ", ivec2(vs_aTexCoord), 0, ivec2(0.0, 0.0)); \n";
815 for (int uniformIdx = 0; uniformIdx < m_shaderFragmentParameters.uniformTotal; uniformIdx++)
817 source << this->genFunctionCall(m_shaderFragmentParameters.samplingType, uniformIdx);
1197 for (int uniformIdx = 0; uniformIdx < (int)uniformDataList.size(); uniformIdx++)
1199 if (uniformDataList[uniformIdx].toggleDecode == true)
1201 if (m_textureSourceList[uniformIdx]->getDecode() == SRGBDECODE_DECODE_DEFAULT)
1208 m_textureSourceList[uniformIdx]->setDecode((SRGBDecode)((m_textureSourceList[uniformIdx]->getDecode() + 1) % SRGBDECODE_DECODE_DEFAULT));