/external/angle/src/tests/gl_tests/gles1/ |
D | MaterialsTest.cpp | 38 const GLColor32F kAmbientInitial(0.2f, 0.2f, 0.2f, 1.0f); in TEST_P() 39 const GLColor32F kDiffuseInitial(0.8f, 0.8f, 0.8f, 1.0f); in TEST_P() 40 const GLColor32F kSpecularInitial(0.0f, 0.0f, 0.0f, 1.0f); in TEST_P() 41 const GLColor32F kEmissiveInitial(0.0f, 0.0f, 0.0f, 1.0f); in TEST_P() 44 GLColor32F actualColor; in TEST_P() 54 std::vector<GLColor32F> colors = { in TEST_P() 92 const GLColor32F kAmbientTestValue(1.0f, 1.0f, 1.0f, 1.0f); in TEST_P() 93 const GLColor32F kDiffuseTestValue(0.0f, 0.0f, 0.0f, 0.0f); in TEST_P() 94 const GLColor32F kSpecularTestValue(0.5f, 0.5f, 0.5f, 0.5f); in TEST_P() 95 const GLColor32F kEmissiveTestValue(0.4f, 0.4f, 0.4f, 0.4f); in TEST_P() [all …]
|
D | LightsTest.cpp | 41 const GLColor32F kAmbientInitial(0.2f, 0.2f, 0.2f, 1.0f); in TEST_P() 44 GLColor32F lightModelAmbient; in TEST_P() 69 const GLColor32F kLightnAmbient(0.0f, 0.0f, 0.0f, 1.0f); in TEST_P() 70 const GLColor32F kLightnDiffuse(0.0f, 0.0f, 0.0f, 1.0f); in TEST_P() 71 const GLColor32F kLightnSpecular(0.0f, 0.0f, 0.0f, 1.0f); in TEST_P() 72 const GLColor32F kLight0Diffuse(1.0f, 1.0f, 1.0f, 1.0f); in TEST_P() 73 const GLColor32F kLight0Specular(1.0f, 1.0f, 1.0f, 1.0f); in TEST_P() 87 GLColor32F actualColor; in TEST_P() 221 GLColor32F actualColor; in TEST_P() 229 const GLColor32F lightModelAmbient(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P() [all …]
|
D | CurrentColorTest.cpp | 36 const GLColor32F kFloatWhite(1.0f, 1.0f, 1.0f, 1.0f); in TEST_P() 37 GLColor32F actualColor; in TEST_P() 51 GLColor32F floatColor; in TEST_P() 55 EXPECT_EQ(GLColor32F(0.1f, 0.2f, 0.3f, 0.4f), floatColor); in TEST_P()
|
D | FogTest.cpp | 64 const GLColor32F kInitialFogColor(0.0f, 0.0f, 0.0f, 0.0f); in TEST_P() 65 GLColor32F initialFogColor; in TEST_P() 122 const GLColor32F testColor(0.1f, 0.2f, 0.3f, 0.4f); in TEST_P()
|
D | TextureEnvTest.cpp | 47 const GLColor32F &envColor, in verifyEnvironment() 158 GLColor32F(0.0f, 0.0f, 0.0f, 0.0f), // envColor in TEST_P() 318 GLColor32F envColor(rng.randomFloatBetween(0.0f, 1.0f), rng.randomFloatBetween(0.0f, 1.0f), in TEST_P()
|
/external/angle/src/tests/test_utils/ |
D | ANGLETest.h | 164 struct GLColor32F struct 166 constexpr GLColor32F() : GLColor32F(0.0f, 0.0f, 0.0f, 0.0f) {} in GLColor32F() argument 167 constexpr GLColor32F(GLfloat r, GLfloat g, GLfloat b, GLfloat a) : R(r), G(g), B(b), A(a) {} in GLColor32F() function 172 static constexpr GLColor32F kFloatBlack = {0.0f, 0.0f, 0.0f, 1.0f}; argument 173 static constexpr GLColor32F kFloatRed = {1.0f, 0.0f, 0.0f, 1.0f}; 174 static constexpr GLColor32F kFloatGreen = {0.0f, 1.0f, 0.0f, 1.0f}; 175 static constexpr GLColor32F kFloatBlue = {0.0f, 0.0f, 1.0f, 1.0f}; 202 GLColor32F MakeGLColor32F(TR r, TG g, TB b, TA a) in MakeGLColor32F() 204 return GLColor32F(static_cast<GLfloat>(r), static_cast<GLfloat>(g), static_cast<GLfloat>(b), in MakeGLColor32F() 208 bool operator==(const GLColor32F &a, const GLColor32F &b); [all …]
|
D | ANGLETest.cpp | 309 bool operator==(const GLColor32F &a, const GLColor32F &b) in operator ==() 314 std::ostream &operator<<(std::ostream &ostream, const GLColor32F &color) in operator <<() 320 GLColor32F ReadColor32F(GLint x, GLint y) in ReadColor32F() 322 GLColor32F actual; in ReadColor32F()
|
/external/angle/src/tests/gl_tests/ |
D | CopyTextureTest.cpp | 1938 auto testOutput = [this](GLuint texture, const GLColor32F &expectedColor) { in TEST_P() 1986 const GLColor32F &expectedColor) { in TEST_P() 2003 GL_FLOAT, false, false, false, GLColor32F(0.5f, 0.25f, 0.125f, 0.5f)); in TEST_P() 2005 GL_FLOAT, false, true, false, GLColor32F(0.25f, 0.125f, 0.0625f, 0.5f)); in TEST_P() 2007 GL_FLOAT, false, false, true, GLColor32F(1.0f, 0.5f, 0.25f, 0.5f)); in TEST_P() 2010 GL_FLOAT, false, false, false, GLColor32F(0.5f, 0.0f, 0.0f, 1.0f)); in TEST_P() 2012 GL_FLOAT, false, true, false, GLColor32F(0.25f, 0.0f, 0.0f, 1.0f)); in TEST_P() 2014 GL_FLOAT, false, false, true, GLColor32F(1.0f, 0.0f, 0.0f, 1.0f)); in TEST_P() 2017 GL_FLOAT, false, false, false, GLColor32F(0.5f, 0.25f, 0.0f, 1.0f)); in TEST_P() 2019 GL_FLOAT, false, true, false, GLColor32F(0.25f, 0.125f, 0.0f, 1.0f)); in TEST_P() [all …]
|
D | FloatingPointSurfaceTest.cpp | 50 GLColor32F clearColor(0.0f, 1.0f, 2.0f, 3.0f); in TEST_P()
|
D | StateChangeTest.cpp | 1515 void blendAndVerifyColor(const GLColor32F blendColor, const GLColor expectedColor) in blendAndVerifyColor() 2747 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 2791 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 2826 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 2862 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 2898 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 2957 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 3021 blendAndVerifyColor(GLColor32F(1.0f, 0.0f, 0.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 3062 blendAndVerifyColor(GLColor32F(0.0f, 0.0f, 1.0f, 0.5f), GLColor(127, 127, 127, 191)); in TEST_P() 4013 std::vector<GLColor32F> blueColor(6, kFloatBlue); in TEST_P() [all …]
|
D | TextureTest.cpp | 76 GLColor32F SliceFormatColor32F(GLenum format, GLColor32F full) in SliceFormatColor32F() 81 return GLColor32F(full.R, 0.0f, 0.0f, 1.0f); in SliceFormatColor32F() 83 return GLColor32F(full.R, full.G, 0.0f, 1.0f); in SliceFormatColor32F() 85 return GLColor32F(full.R, full.G, full.B, 1.0f); in SliceFormatColor32F() 89 return GLColor32F(full.R, full.R, full.R, 1.0f); in SliceFormatColor32F() 91 return GLColor32F(0.0f, 0.0f, 0.0f, full.R); in SliceFormatColor32F() 93 return GLColor32F(full.R, full.R, full.R, full.G); in SliceFormatColor32F() 96 return GLColor32F(1.0f, 1.0f, 1.0f, 1.0f); in SliceFormatColor32F() 4013 const GLColor32F kNewMipColors[kMipCount] = { in TEST_P() 4014 GLColor32F(1.0, 1.0, 0.0, 1.0f), in TEST_P() [all …]
|
D | UniformBufferTest.cpp | 1479 glBufferData(GL_UNIFORM_BUFFER, sizeof(GLColor32F), &kFloatRed, GL_STATIC_DRAW); in TEST_P() 1487 glBufferData(GL_UNIFORM_BUFFER, sizeof(GLColor32F), &kFloatGreen, GL_STATIC_DRAW); in TEST_P() 1524 glBufferData(GL_UNIFORM_BUFFER, sizeof(GLColor32F), &kFloatRed, GL_STATIC_DRAW); in TEST_P() 1532 glBufferData(GL_UNIFORM_BUFFER, sizeof(GLColor32F), &kFloatGreen, GL_STATIC_DRAW); in TEST_P() 1567 glBufferData(GL_UNIFORM_BUFFER, sizeof(GLColor32F), &kFloatRed, GL_STATIC_DRAW); in TEST_P() 1575 std::vector<GLColor32F> bigData(128, kFloatGreen); in TEST_P() 1576 glBufferData(GL_UNIFORM_BUFFER, sizeof(GLColor32F) * bigData.size(), bigData.data(), in TEST_P()
|
D | WebGLCompatibilityTest.cpp | 215 0, 0, GLColor32F(floatData[0], floatData[1], floatData[2], floatData[3]), 1.0f); in TestFloatTextureFormat() 248 EXPECT_PIXEL_COLOR32F_NEAR(0, 0, GLColor32F(1, 0, 1, 1), 0.001f); in TestExtFloatBlend() 269 EXPECT_PIXEL_COLOR32F_NEAR(0, 0, GLColor32F(5, 0, 0, 0), 0.001f); in TestExtFloatBlend() 3502 auto expected = GLColor32F(5, 0, 0, 0); in TestBlendColor() 3511 const auto actual = GLColor32F(arr[0], arr[1], arr[2], arr[3]); in TestBlendColor() 4788 constexpr GLColor32F data[4] = { in TEST_P() 4819 constexpr GLColor32F data[4] = { in TEST_P()
|
D | VertexAttributeTest.cpp | 1070 void SetupColorsForUnitQuad(GLint location, const GLColor32F &color, GLenum usage, GLBuffer *vbo) in SetupColorsForUnitQuad() 1073 std::vector<GLColor32F> vertices(6, color); in SetupColorsForUnitQuad() 1074 glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(GLColor32F), vertices.data(), usage); in SetupColorsForUnitQuad()
|
D | CopyTexture3DTest.cpp | 246 GLColor32F(expectedColorFloat[0], expectedColorFloat[1], in testCopy()
|
/external/angle/src/tests/egl_tests/ |
D | EGLSurfaceTest.cpp | 371 GLColor32F clearColor(0.0f, 1.0f, 2.0f, 3.0f); in TEST_P()
|