• Home
  • Raw
  • Download

Lines Matching refs:subroutineUniforms

974 …static void streamSubroutineDefinitions(const std::vector<SubroutineUniform>& subroutineUniforms, …  in streamSubroutineDefinitions()  argument
977 if (subroutineUniforms.size()) in streamSubroutineDefinitions()
983 for (size_t i = 0; i < subroutineUniforms.size(); i++) in streamSubroutineDefinitions()
985 if (subroutineUniforms[i].defOccurence.occurs(shader)) in streamSubroutineDefinitions()
989 ret << "subroutine vec4 " << subroutineUniforms[i].functions.getTypeName() << "(float param);" in streamSubroutineDefinitions()
992 for (size_t fn = 0; fn < subroutineUniforms[i].functions.fn.size(); fn++) in streamSubroutineDefinitions()
995 subroutineUniforms[i].functions.fn[fn].index.streamDefinition(ret, shader); in streamSubroutineDefinitions()
996 ret << "subroutine(" << subroutineUniforms[i].functions.getTypeName() << ") vec4 " in streamSubroutineDefinitions()
997 << subroutineUniforms[i].functions.fn[fn].getName() << "(float param) { return zero + "; in streamSubroutineDefinitions()
998 subroutineUniforms[i].functions.fn[fn].getRetVal().streamValue(ret); in streamSubroutineDefinitions()
1003 subroutineUniforms[i].location.streamDefinition(ret, shader); in streamSubroutineDefinitions()
1004 ret << "subroutine uniform " << subroutineUniforms[i].functions.getTypeName() << " " in streamSubroutineDefinitions()
1005 << subroutineUniforms[i].getName(); in streamSubroutineDefinitions()
1006 subroutineUniforms[i].streamArrayStr(ret); in streamSubroutineDefinitions()
1103 const std::vector<SubroutineUniform>& subroutineUniforms, GLenum shader, in streamSubroutineValidators() argument
1106 for (size_t i = 0; i < subroutineUniforms.size(); i++) in streamSubroutineValidators()
1108 streamSubroutineValidator(ret, subroutineUniforms[i], shader, outTemporary); in streamSubroutineValidators()
1125 const std::vector<SubroutineUniform>& subroutineUniforms, in generateFragmentShader() argument
1134 streamSubroutineDefinitions(subroutineUniforms, GL_FRAGMENT_SHADER, ret); in generateFragmentShader()
1139 streamSubroutineValidators(ret, subroutineUniforms, GL_FRAGMENT_SHADER, "validationResult"); in generateFragmentShader()
1146 const std::vector<SubroutineUniform>& subroutineUniforms, in generateVertexShader() argument
1155 streamSubroutineDefinitions(subroutineUniforms, GL_VERTEX_SHADER, ret); in generateVertexShader()
1160 streamSubroutineValidators(ret, subroutineUniforms, GL_VERTEX_SHADER, "validationResult"); in generateVertexShader()
1166 const std::vector<SubroutineUniform>& subroutineUniforms, in generateComputeShader() argument
1177 streamSubroutineDefinitions(subroutineUniforms, GL_COMPUTE_SHADER, ret); in generateComputeShader()
1182 streamSubroutineValidators(ret, subroutineUniforms, GL_COMPUTE_SHADER, "validationResult"); in generateComputeShader()
1189 const std::vector<SubroutineUniform>& subroutineUniforms, in generateShader() argument
1196 return generateVertexShader(key, uniforms, subroutineUniforms, additionalDef, type); in generateShader()
1198 return generateFragmentShader(key, uniforms, subroutineUniforms, additionalDef, type); in generateShader()
1201 return generateComputeShader(key, uniforms, subroutineUniforms, additionalDef, type); in generateShader()
1241 const std::vector<SubroutineUniform>& subroutineUniforms, in CreateShaders() argument
1257 subroutineUniforms, additionalDef, in CreateShaders()
1276 const std::vector<SubroutineUniform>& subroutineUniforms, const std::string& additionalDef, in CreatePrograms() argument
1296 CreateShaders(programConfigs, uniforms, subroutineUniforms, additionalDef); in CreatePrograms()
1566 const std::vector<SubroutineUniform>& subroutineUniforms) in runExecuteProgram() argument
1577 for (size_t stage = 0; stage < program.stages.size() && subroutineUniforms.size(); stage++) in runExecuteProgram()
1587 for (size_t i = 0; i < subroutineUniforms.size(); i++) in runExecuteProgram()
1589 setSubroutineUniform(subroutineUniforms[i], program, program.stages[stage], indices); in runExecuteProgram()
1989 const std::vector<SubroutineUniform>& subroutineUniforms) in runQueryProgram() argument
2005 if (subroutineUniforms.size()) in runQueryProgram()
2015 for (size_t i = 0; i < subroutineUniforms.size(); i++) in runQueryProgram()
2017 ret |= runQueryUniformSubroutine(program, program.stages[stage], subroutineUniforms[i], in runQueryProgram()
2019 for (size_t fn = 0; fn < subroutineUniforms[i].functions.fn.size(); fn++) in runQueryProgram()
2022 program, program.stages[stage], subroutineUniforms[i].functions.fn[fn], usedIndices, in runQueryProgram()
2024 subroutineUniforms[i].defOccurence.occurs(program.stages[stage]) && in runQueryProgram()
2025 subroutineUniforms[i].used); in runQueryProgram()
2038 long doRun(std::vector<SubroutineUniform>& subroutineUniforms) in doRun() argument
2040 assert(subroutineUniforms.size()); in doRun()
2042 return doRun(noUniforms, subroutineUniforms); in doRun()
2065 long doRunNegativeLink(std::vector<SubroutineUniform>& subroutineUniforms) in doRunNegativeLink() argument
2068 return doRun(noUniforms, subroutineUniforms, "", false, true); in doRunNegativeLink()
2071 long doRun(std::vector<Uniform>& uniforms, std::vector<SubroutineUniform>& subroutineUniforms, in doRun() argument
2084 for (size_t i = 0; i < subroutineUniforms.size(); i++) in doRun()
2088 subroutineUniforms[i].setName(name.str()); in doRun()
2089 if (!subroutineUniforms[i].functions.getTypeName().size()) in doRun()
2091 subroutineUniforms[i].functions.setTypeName(subroutineTypeCounter++); in doRun()
2092 for (size_t fn = 0; fn < subroutineUniforms[i].functions.fn.size(); fn++) in doRun()
2094 subroutineUniforms[i].functions.fn[fn].setName(subroutineFunctionCounter++); in doRun()
2114 …ret |= CreatePrograms(programs, uniforms, subroutineUniforms, additionalDef, negativeCompile, nega… in doRun()
2118 ret |= runExecuteProgram(programs[i], uniforms, subroutineUniforms); in doRun()
2119 ret |= runQueryProgram(programs[i], uniforms, subroutineUniforms); in doRun()
2658 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2661 subroutineUniforms.push_back( in Run()
2663 return doRun(subroutineUniforms); in Run()
2677 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2680subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(0x0a, … in Run()
2683subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(010, L… in Run()
2685 return doRun(subroutineUniforms); in Run()
2698 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2701 subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(2))); in Run()
2702 return doRun(subroutineUniforms); in Run()
2716 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2719subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(1), 2)… in Run()
2720 return doRun(subroutineUniforms); in Run()
2738 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2741subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(1), 2)… in Run()
2747 subroutineUniforms.push_back( in Run()
2751 subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st1, Loc::C(9))); in Run()
2753 return doRun(subroutineUniforms); in Run()
2766 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2768subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::Implicit… in Run()
2770 subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(0))); in Run()
2772 subroutineUniforms.push_back(SubroutineUniform(uniformValueGenerator, functions_st0, Loc::C(1))); in Run()
2774 return doRun(subroutineUniforms); in Run()
2809 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2810 subroutineUniforms.push_back( in Run()
2812 subroutineUniforms.push_back( in Run()
2814 return doRunNegativeLink(subroutineUniforms); in Run()
2828 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2829 subroutineUniforms.push_back( in Run()
2831 return doRunNegativeLink(subroutineUniforms); in Run()
2843 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2844 subroutineUniforms.push_back( in Run()
2846 subroutineUniforms.push_back( in Run()
2848 return doRunNegativeLink(subroutineUniforms); in Run()
2865 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2868 subroutineUniforms.push_back( in Run()
2870 return doRun(subroutineUniforms); in Run()
2887 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2890 subroutineUniforms.push_back( in Run()
2893 return doRun(subroutineUniforms); in Run()
2911 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2914 subroutineUniforms.push_back( in Run()
2916 return doRun(subroutineUniforms); in Run()
2933 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2936 subroutineUniforms.push_back( in Run()
2938 return doRun(subroutineUniforms); in Run()
2963 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2965 subroutineUniforms.push_back( in Run()
2968 subroutineUniforms.push_back( in Run()
2971 return doRun(subroutineUniforms); in Run()
2987 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
2990 subroutineUniforms.push_back( in Run()
2992 return doRun(subroutineUniforms); in Run()
3010 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
3013 subroutineUniforms.push_back( in Run()
3015 return doRun(subroutineUniforms); in Run()
3050 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
3053 subroutineUniforms.push_back( in Run()
3055 return doRunNegativeLink(subroutineUniforms); in Run()
3072 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
3075 subroutineUniforms.push_back( in Run()
3077 return doRunNegativeLink(subroutineUniforms); in Run()
3098 std::vector<SubroutineUniform> subroutineUniforms; in Run() local
3101 subroutineUniforms.push_back( in Run()
3103 return doRunNegativeLink(subroutineUniforms); in Run()