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 Matrix tests 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.shaders.matrix.* 23e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.shaders.conversions.scalar_to_matrix.* 24e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.shaders.conversions.matrix_to_matrix.* 25e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.shaders.conversions.matrix_combine.* 26e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.shaders.conversions.matrix_illegal.* 27e5c31af7Sopenharmony_ci + dEQP-GLES3.functional.shaders.indexing.matrix_subscript.* 28e5c31af7Sopenharmony_ci 29e5c31af7Sopenharmony_ciIncludes: 30e5c31af7Sopenharmony_ci + matN and matNxM (rectangular) matrix types 31e5c31af7Sopenharmony_ci + Matrix-Matrix and Matrix-Vector arithmetic 32e5c31af7Sopenharmony_ci - Constant, uniform and shader in inputs 33e5c31af7Sopenharmony_ci + Matrix constructors 34e5c31af7Sopenharmony_ci - From scalar(s) 35e5c31af7Sopenharmony_ci - From other matrices 36e5c31af7Sopenharmony_ci - From mixed inputs 37e5c31af7Sopenharmony_ci + Negative tests for illegal matrix constructor usage 38e5c31af7Sopenharmony_ci + Matrix static and dynamic indexing 39e5c31af7Sopenharmony_ci 40e5c31af7Sopenharmony_ciExcludes: 41e5c31af7Sopenharmony_ci + Matrices in uniform blocks 42e5c31af7Sopenharmony_ci - Covered in separate UBO tests 43e5c31af7Sopenharmony_ci 44e5c31af7Sopenharmony_ciDescription: 45e5c31af7Sopenharmony_ci 46e5c31af7Sopenharmony_ciMatrix arithmetic tests operate like other shader rendering tests. 47e5c31af7Sopenharmony_ciInput matrices and vectors are read from uniforms, shader inputs 48e5c31af7Sopenharmony_cior constructed as constant values. Operation is performed in shader 49e5c31af7Sopenharmony_cibody and the final result is reduced to vec3 that is assigned to 50e5c31af7Sopenharmony_civertex or fragment color. Rendered image is compared against a 51e5c31af7Sopenharmony_cireference image computed using same algorithm written in C. 52e5c31af7Sopenharmony_ci 53e5c31af7Sopenharmony_ciMatrix constructor and coversion tests compare results against 54e5c31af7Sopenharmony_cipre-computed reference value in fragment shader. Fragment color 55e5c31af7Sopenharmony_ciis either white or black depending on whether the result were 56e5c31af7Sopenharmony_cicorrect or not. 57e5c31af7Sopenharmony_ci 58e5c31af7Sopenharmony_ciUniform buffer object tests are described in a separate test 59e5c31af7Sopenharmony_cispecification document. 60