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 Single vertex attribute vertex array tests 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES2.functional.vertex_arrays.single_attribute.* 23e5c31af7Sopenharmony_ci 24e5c31af7Sopenharmony_ciIncludes: 25e5c31af7Sopenharmony_ci + Rendering with different strides from buffer and user pointer. 26e5c31af7Sopenharmony_ci + Attribute normalization with different types and component counts. 27e5c31af7Sopenharmony_ci + Passing attributes to vec2, vec3 and vec4. 28e5c31af7Sopenharmony_ci + Using buffers with different usage. 29e5c31af7Sopenharmony_ci + Buffer attributes with different offsets. 30e5c31af7Sopenharmony_ci 31e5c31af7Sopenharmony_ciExcludes: 32e5c31af7Sopenharmony_ci + Buffer data modifications 33e5c31af7Sopenharmony_ci + Stride less than types own size 34e5c31af7Sopenharmony_ci + Robustness with nan or inf 35e5c31af7Sopenharmony_ci + Index buffers or glDrawElements 36e5c31af7Sopenharmony_ci + Different first values for glDrawArrays 37e5c31af7Sopenharmony_ci 38e5c31af7Sopenharmony_ciDescription: 39e5c31af7Sopenharmony_ci 40e5c31af7Sopenharmony_ciTestcases generate data that defines quads in testcase specifig format. 41e5c31af7Sopenharmony_ciThis takes account stride, offsets and other parameters. Input types must 42e5c31af7Sopenharmony_cihave two or more components to form distinct coordinates. First two components 43e5c31af7Sopenharmony_ciare coordinates and six subsequent attributes form two triangles which define a 44e5c31af7Sopenharmony_ciquad. Third and fourth component are same for each vertex in quad. 45e5c31af7Sopenharmony_ciThis data is uploaded to buffer or used from user pointer while rendering. 46e5c31af7Sopenharmony_ciRendering uses simple shader that takes first two components and adds 47e5c31af7Sopenharmony_cifirst to third component and second to fourth component if more than 48e5c31af7Sopenharmony_citwo components are used. First and third component are used as x coordinate 49e5c31af7Sopenharmony_ciand second and fourth as y. These values are also scaled to range from -1.0 to 1.0. 50e5c31af7Sopenharmony_ciTest renders only once and result is checked against reference implementations result. 51e5c31af7Sopenharmony_ci 52e5c31af7Sopenharmony_ciStride tests render different input type and component count combinations from buffer 53e5c31af7Sopenharmony_ciand user pointer. Stride testcases test npot and pot strides and types real size as stride. 54e5c31af7Sopenharmony_ciData is passed to shader as vec4. 55e5c31af7Sopenharmony_ci 56e5c31af7Sopenharmony_ciNormalization is tested with different input types and component counts. User 57e5c31af7Sopenharmony_cipointers are used as source for data and vec4 is used in shaders. 58e5c31af7Sopenharmony_ci 59e5c31af7Sopenharmony_ciOutput type tests pass different input types to different vector types in shader. 60e5c31af7Sopenharmony_ciAlso different input type and output type component counts are tested. Data is used 61e5c31af7Sopenharmony_cifrom user pointer. 62e5c31af7Sopenharmony_ci 63e5c31af7Sopenharmony_ciUsage testcases test buffers with different usage parameters with different strides 64e5c31af7Sopenharmony_ciand different sized types. The data is used as vec2 in shaders. 65