// // Copyright 2016 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // EmulateGLFragColorBroadcast_test.cpp: // Tests for gl_FragColor broadcast behavior emulation. // #include "GLSLANG/ShaderLang.h" #include "angle_gl.h" #include "gtest/gtest.h" #include "tests/test_utils/compiler_test.h" usingnamespacesh; namespace { const int kMaxDrawBuffers = …; class EmulateGLFragColorBroadcastTest : public MatchOutputCodeTest { … }; // Verifies that without explicitly enabling GL_EXT_draw_buffers extension // in the shader, no broadcast emulation. TEST_F(EmulateGLFragColorBroadcastTest, FragColorNoBroadcast) { … } // Verifies that with explicitly enabling GL_EXT_draw_buffers extension // in the shader, broadcast is emualted by replacing gl_FragColor with gl_FragData. TEST_F(EmulateGLFragColorBroadcastTest, FragColorBroadcast) { … } // Verifies that with explicitly enabling GL_EXT_draw_buffers extension // in the shader with an empty main(), anothing happens. TEST_F(EmulateGLFragColorBroadcastTest, EmptyMain) { … } } // namespace