Lines Matching refs:Vec4
54 "layout(location = 0) out mediump vec4 fragColor;\n"
55 "in mediump vec4 v_color;\n"
84 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0;
101 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
135 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
169 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
203 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
254 bool renderWithValue (const tcu::Vec4& v);
255 tcu::Vec4 computeColor (const tcu::Vec4& value);
256 bool verifyUnicoloredBuffer (const tcu::Surface& scene, const tcu::Vec4& refValue);
334 const tcu::Vec4 fullscreenQuad[] =
336 tcu::Vec4( 1.0f, 1.0f, 0.0f, 1.0f),
337 tcu::Vec4( 1.0f, -1.0f, 0.0f, 1.0f),
338 tcu::Vec4(-1.0f, 1.0f, 0.0f, 1.0f),
339 tcu::Vec4(-1.0f, -1.0f, 0.0f, 1.0f),
368 static const tcu::Vec4 testValues[] =
370 tcu::Vec4(0.0f, 0.5f, 0.2f, 1.0f),
371 tcu::Vec4(0.1f, 0.7f, 1.0f, 0.6f),
372 tcu::Vec4(0.4f, 0.2f, 0.0f, 0.5f),
373 tcu::Vec4(0.5f, 0.0f, 0.9f, 0.1f),
374 tcu::Vec4(0.6f, 0.2f, 0.2f, 0.9f),
375 tcu::Vec4(0.9f, 1.0f, 0.0f, 0.0f),
376 tcu::Vec4(1.0f, 0.5f, 0.3f, 0.8f),
382 const tcu::Vec4 testValue = ((m_useNegativeValues) ? (testValues[m_iteration] * 2.0f - tcu::Vec4(1.0f)) : (testValues[m_iteration])) * ((m_normalizing) ? (1.0f) : ((float)s_valueRange));
408 "in highp vec4 a_position;\n"
410 "out highp vec4 v_color;\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";
442 bool AttributeCase::renderWithValue (const tcu::Vec4& v)
451 tcu::Vec4 loadedValue;
478 tcu::Vec4 AttributeCase::computeColor (const tcu::Vec4& value)
480 const tcu::Vec4 normalizedValue = value / ((m_normalizing) ? (1.0f) : ((float)s_valueRange));
481 const tcu::Vec4 positiveNormalizedValue = ((m_useNegativeValues) ? ((normalizedValue + tcu::Vec4(1.0f)) / 2.0f) : (normalizedValue));
485 return tcu::Vec4(positiveNormalizedValue.x(), 0.0f, 0.0f, 1.0f);
487 return tcu::Vec4(positiveNormalizedValue.x(), positiveNormalizedValue.y(), 0.0f, 1.0f);
489 return tcu::Vec4(positiveNormalizedValue.x(), positiveNormalizedValue.y(), positiveNormalizedValue.z(), 1.0f);
491 return tcu::Vec4((positiveNormalizedValue.x() + positiveNormalizedValue.z()) / 2.0f, (positiveNormalizedValue.y() + positiveNormalizedValue.z()) / 2.0f, positiveNormalizedValue.w(), 1.0f);
495 return tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f);
498 bool AttributeCase::verifyUnicoloredBuffer (const tcu::Surface& scene, const tcu::Vec4& refValue)
576 { "vec4", glu::TYPE_FLOAT_VEC4, false },