Lines Matching defs:buf
405 std::ostringstream buf;
407 buf << "#version 300 es\n"
417 buf << " highp " << vectorType << " normalizedValue = " << ((glu::getDataTypeScalarType(m_dataType) == glu::TYPE_FLOAT) ? ("") : (vectorType)) << "(a_value" << ((glu::isDataTypeMatrix(m_dataType)) ? ("[1]") : ("")) << ");\n";
419 buf << " highp " << vectorType << " normalizedValue = " << ((glu::getDataTypeScalarType(m_dataType) == glu::TYPE_FLOAT) ? ("") : (vectorType)) << "(a_value" << ((glu::isDataTypeMatrix(m_dataType)) ? ("[1]") : ("")) << ") / float(" << s_valueRange << ");\n";
422 buf << " highp " << vectorType << " positiveNormalizedValue = (normalizedValue + " << vectorType << "(1.0)) / 2.0;\n";
424 buf << " highp " << vectorType << " positiveNormalizedValue = normalizedValue;\n";
427 buf << " v_color = vec4(positiveNormalizedValue, 0.0, 0.0, 1.0);\n";
429 buf << " v_color = vec4(positiveNormalizedValue.xy, 0.0, 1.0);\n";
431 buf << " v_color = vec4(positiveNormalizedValue.xyz, 1.0);\n";
433 buf << " v_color = vec4((positiveNormalizedValue.xy + positiveNormalizedValue.zz) / 2.0, positiveNormalizedValue.w, 1.0);\n";
437 buf << "}\n";
439 return buf.str();