#include "tests/test_utils/ShaderExtensionTest.h"
#include "common/PackedEnums.h"
namespace
{
const char EXTPragma[] = …;
const char ESSL310_Simple[] = …;
const char ESSL310_DeclaredMultiplyScreenSeparately[] = …;
const char ESSL310_DeclaredMultiplyScreenSuccessively[] = …;
const char ESSL310_With_FramebufferFetch[] = …;
const char ESSL310_With_FramebufferFetchVec3[] = …;
class KHRBlendEquationAdvancedTest : public sh::ShaderExtensionTest
{ … };
class KHRBlendEquationAdvancedES310Test : public KHRBlendEquationAdvancedTest
{ … };
TEST_P(KHRBlendEquationAdvancedES310Test, CompileFailsWithoutExtension)
{ … }
TEST_P(KHRBlendEquationAdvancedES310Test, CompileFailsWithExtensionWithoutPragma)
{ … }
INSTANTIATE_TEST_SUITE_P(…);
#if defined(ANGLE_ENABLE_VULKAN)
class KHRBlendEquationAdvancedSuccessTest : public KHRBlendEquationAdvancedTest
{ … };
class KHRBlendEquationAdvancedES310SuccessTest : public KHRBlendEquationAdvancedSuccessTest
{ … };
TEST_P(KHRBlendEquationAdvancedES310SuccessTest, CompileSucceedsWithExtensionAndPragma)
{ … }
TEST_P(KHRBlendEquationAdvancedES310SuccessTest, CompileSucceedsWithExtensionAndPragmaWithEmulation)
{ … }
INSTANTIATE_TEST_SUITE_P(…);
class KHRBlendEquationAdvancedEnabledListCheckTest : public KHRBlendEquationAdvancedTest
{ … };
class KHRBlendEquationAdvancedEnabledSeparatelyTest
: public KHRBlendEquationAdvancedEnabledListCheckTest
{ … };
TEST_P(KHRBlendEquationAdvancedEnabledSeparatelyTest, DeclaredEquationSeparately)
{ … }
TEST_P(KHRBlendEquationAdvancedEnabledSeparatelyTest, DeclaredEquationSeparatelyWithEmulation)
{ … }
INSTANTIATE_TEST_SUITE_P(…);
class KHRBlendEquationAdvancedEnabledSuccessivelyTest
: public KHRBlendEquationAdvancedEnabledListCheckTest
{ … };
TEST_P(KHRBlendEquationAdvancedEnabledSuccessivelyTest, DeclaredEquationSuccessively)
{ … }
INSTANTIATE_TEST_SUITE_P(…);
#endif
}