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