1e5c31af7Sopenharmony_ci------------------------------------------------------------------------- 2e5c31af7Sopenharmony_cidrawElements Quality Program Test Specification 3e5c31af7Sopenharmony_ci----------------------------------------------- 4e5c31af7Sopenharmony_ci 5e5c31af7Sopenharmony_ciCopyright 2014 The Android Open Source Project 6e5c31af7Sopenharmony_ci 7e5c31af7Sopenharmony_ciLicensed under the Apache License, Version 2.0 (the "License"); 8e5c31af7Sopenharmony_ciyou may not use this file except in compliance with the License. 9e5c31af7Sopenharmony_ciYou may obtain a copy of the License at 10e5c31af7Sopenharmony_ci 11e5c31af7Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 12e5c31af7Sopenharmony_ci 13e5c31af7Sopenharmony_ciUnless required by applicable law or agreed to in writing, software 14e5c31af7Sopenharmony_cidistributed under the License is distributed on an "AS IS" BASIS, 15e5c31af7Sopenharmony_ciWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16e5c31af7Sopenharmony_ciSee the License for the specific language governing permissions and 17e5c31af7Sopenharmony_cilimitations under the License. 18e5c31af7Sopenharmony_ci------------------------------------------------------------------------- 19e5c31af7Sopenharmony_ci GL_EXT_shader_implicit_conversions 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES31.functional.shaders.implicit_conversions.* 23e5c31af7Sopenharmony_ci 24e5c31af7Sopenharmony_ciIncludes: 25e5c31af7Sopenharmony_ci + All valid implicit conversion pairs 26e5c31af7Sopenharmony_ci + Promotion to vector types (for example int -> vec3) 27e5c31af7Sopenharmony_ci + Binary operations 28e5c31af7Sopenharmony_ci - Arithmetic 29e5c31af7Sopenharmony_ci - Comparison 30e5c31af7Sopenharmony_ci + Array subscription 31e5c31af7Sopenharmony_ci + Calling function with implicit conversion on parameter type 32e5c31af7Sopenharmony_ci + Negative tests for invalid assignments 33e5c31af7Sopenharmony_ci + Negative tests for implict array / struct conversions 34e5c31af7Sopenharmony_ci 35e5c31af7Sopenharmony_ciExcludes: 36e5c31af7Sopenharmony_ci + Extensive function overloading tests with implicit conversions 37e5c31af7Sopenharmony_ci + Extensive negative tests for various other implicit conversions 38e5c31af7Sopenharmony_ci - Will be added in 2014.4 release 39e5c31af7Sopenharmony_ci 40e5c31af7Sopenharmony_ciDescription: 41e5c31af7Sopenharmony_ci 42e5c31af7Sopenharmony_ciValid cases compile and run a program that perform the implicit conversion 43e5c31af7Sopenharmony_cioperation in either vertex and fragment shader. Results are checked against 44e5c31af7Sopenharmony_cireference values in the shader code and either black or white color is 45e5c31af7Sopenharmony_ciselected based on that. The test verifies that all result pixels are white. 46e5c31af7Sopenharmony_ci 47e5c31af7Sopenharmony_ciNegative cases attempt to compile a shader with the invalid operation and 48e5c31af7Sopenharmony_cichecks that the compilation in fact fails. 49