Lines Matching refs:constMaybe
467 const string constMaybe = constantExpressionsOnly ? "const " : ""; in builtinFunctionsCaseStatements() local
472 : " " + constMaybe + precision + " vec4 a = vec4(sin(0.7), cos(0.2), sin(0.9), abs(-0.5));\n" in builtinFunctionsCaseStatements()
473 " " + constMaybe + precision + " vec4 b = cos(a) + fract(3.0*a.xzzw);\n" in builtinFunctionsCaseStatements()
474 " " + constMaybe + "bvec4 c = bvec4(true, false, true, true);\n" in builtinFunctionsCaseStatements()
475 " " + constMaybe + precision + " vec4 d = exp(b + vec4(c));\n" in builtinFunctionsCaseStatements()
476 " " + constMaybe + precision + " vec4 e0 = inversesqrt(mix(d+a, d+b, a));\n" in builtinFunctionsCaseStatements()
477 …+ repeatIndexedTemplate(" " + constMaybe + precision + " vec4 e${NDX} = sin(sin(sin(sin(e${PREV_ND… in builtinFunctionsCaseStatements()
478 " " + constMaybe + precision + " vec4 f = abs(e" + toString(numSinRows) + ");\n" + in builtinFunctionsCaseStatements()
484 const string constMaybe = constantExpressionsOnly ? "const " : ""; in arrayCaseStatements() local
503 …" " + constMaybe + precision + " vec4 a = (arr[0] + arr[1] + arr[2] + arr[3]) * (1.0 / float(arr.l… in arrayCaseStatements()
504 " " + constMaybe + precision + " vec4 b0 = cos(sin(a));\n" in arrayCaseStatements()
505 …+ repeatIndexedTemplate(" " + constMaybe + precision + " vec4 b${NDX} = sin(sin(sin(sin(b${PREV_ND… in arrayCaseStatements()
506 " " + constMaybe + precision + " vec4 c = abs(b" + toString(numSinRows) + ");\n" + in arrayCaseStatements()
512 const string constMaybe = constantExpressionsOnly ? "const " : ""; in structCaseStatements() local
525 " " + constMaybe + "S s =\n" in structCaseStatements()
530 " " + constMaybe + precision + " vec4 a = (s.a + s.b + s.c + s.d) * 0.25;\n" in structCaseStatements()
531 " " + constMaybe + precision + " vec4 b0 = cos(sin(a));\n" in structCaseStatements()
532 …+ repeatIndexedTemplate(" " + constMaybe + precision + " vec4 b${NDX} = sin(sin(sin(sin(b${PREV_ND… in structCaseStatements()
533 " " + constMaybe + precision + " vec4 c = abs(b" + toString(numSinRows) + ");\n" + in structCaseStatements()
741 const string constMaybe = useConst ? "const " : ""; in deadBranchComplexCaseStatements() local
747 " " + constMaybe + precision + " vec4 a = vec4(sin(0.7), cos(0.2), sin(0.9), abs(-0.5));\n" in deadBranchComplexCaseStatements()
748 " " + constMaybe + precision + " vec4 b = cos(a) + fract(3.0*a.xzzw);\n" in deadBranchComplexCaseStatements()
749 " " + constMaybe + "bvec4 c = bvec4(true, false, true, true);\n" in deadBranchComplexCaseStatements()
750 " " + constMaybe + precision + " vec4 d = exp(b + vec4(c));\n" in deadBranchComplexCaseStatements()
751 … " " + constMaybe + precision + " vec4 e = 1.8*abs(sin(sin(inversesqrt(mix(d+a, d+b, a)))));\n" in deadBranchComplexCaseStatements()