Lines Matching defs:buf
329 std::ostringstream buf;
331 buf << "attribute highp vec4 a_position;\n"
340 buf << " highp " << vectorType << " normalizedValue = " << ((glu::getDataTypeScalarType(m_dataType) == glu::TYPE_FLOAT) ? ("") : (vectorType)) << "(a_value" << ((glu::isDataTypeMatrix(m_dataType)) ? ("[1]") : ("")) << ");\n";
342 buf << " highp " << vectorType << " normalizedValue = " << ((glu::getDataTypeScalarType(m_dataType) == glu::TYPE_FLOAT) ? ("") : (vectorType)) << "(a_value" << ((glu::isDataTypeMatrix(m_dataType)) ? ("[1]") : ("")) << ") / float(" << s_valueRange << ");\n";
345 buf << " highp " << vectorType << " positiveNormalizedValue = (normalizedValue + " << vectorType << "(1.0)) / 2.0;\n";
347 buf << " highp " << vectorType << " positiveNormalizedValue = normalizedValue;\n";
350 buf << " v_color = vec4(positiveNormalizedValue, 0.0, 0.0, 1.0);\n";
352 buf << " v_color = vec4(positiveNormalizedValue.xy, 0.0, 1.0);\n";
354 buf << " v_color = vec4(positiveNormalizedValue.xyz, 1.0);\n";
356 buf << " v_color = vec4((positiveNormalizedValue.xy + positiveNormalizedValue.zz) / 2.0, positiveNormalizedValue.w, 1.0);\n";
360 buf << "}\n";
362 return buf.str();