1------------------------------------------------------------------------- 2drawElements Quality Program Test Specification 3----------------------------------------------- 4 5Copyright 2014 The Android Open Source Project 6 7Licensed under the Apache License, Version 2.0 (the "License"); 8you may not use this file except in compliance with the License. 9You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13Unless required by applicable law or agreed to in writing, software 14distributed under the License is distributed on an "AS IS" BASIS, 15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16See the License for the specific language governing permissions and 17limitations under the License. 18------------------------------------------------------------------------- 19 GLSL switch statement tests 20 21Tests: 22 + dEQP-GLES3.functional.shaders.switch.* 23 24Includes: 25 + Constant, uniform and dynamic switch expressions 26 + Constant literals as case labels 27 + Complex constant expressions as case labels 28 + Fall-through 29 + Default label 30 + Nested switch, conditional and loop statements 31 + Negative syntax tests for switch statements 32 - Missing colons, opening or closing braces etc. 33 + Negative semantic tests for switch statements 34 - Statements before first label 35 - Non-integer switch expressions 36 - case or default labels inside nested contol flow 37 - No statement between a label and end of switch statement 38 39Excludes: 40 41Description: 42 43Functional tests operate by comparing image rendered by shader against 44a reference image computed using same operation written in C. 45 46Negative tests try to compile the given shader and expect compilation 47to fail. 48