// // 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. // // QualificationOrderESSL31_test.cpp: // OpenGL ES 3.1 removes the strict order of qualifiers imposed by the grammar. // This file contains tests for invalid order and usage of qualifiers in GLSL ES 3.10. #include "gtest/gtest.h" #include "GLSLANG/ShaderLang.h" #include "angle_gl.h" #include "tests/test_utils/ShaderCompileTreeTest.h" #include "tests/test_utils/compiler_test.h" usingnamespacesh; class QualificationVertexShaderTestESSL31 : public ShaderCompileTreeTest { … }; // GLSL ES 3.10 has relaxed checks on qualifier order. Any order is correct. TEST_F(QualificationVertexShaderTestESSL31, CentroidOut) { … } // GLSL ES 3.10 has relaxed checks on qualifier order. Any order is correct. TEST_F(QualificationVertexShaderTestESSL31, AllQualifiersMixed) { … } // GLSL ES 3.10 allows multiple layout qualifiers to be specified. TEST_F(QualificationVertexShaderTestESSL31, MultipleLayouts) { … } // The test checks layout qualifier overriding when multiple layouts are specified. TEST_F(QualificationVertexShaderTestESSL31, MultipleLayoutsInterfaceBlock) { … } // The test checks layout qualifier overriding when multiple layouts are specified. TEST_F(QualificationVertexShaderTestESSL31, MultipleLayoutsInterfaceBlock2) { … }