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    Texture unit usage tests
20e5c31af7Sopenharmony_ci
21e5c31af7Sopenharmony_ciTests:
22e5c31af7Sopenharmony_ci + dEQP-GLES2.functional.texture.units.*
23e5c31af7Sopenharmony_ci
24e5c31af7Sopenharmony_ciIncludes:
25e5c31af7Sopenharmony_ci + Use of multiple units simultaneously:
26e5c31af7Sopenharmony_ci   - 1, 2, 4, 8
27e5c31af7Sopenharmony_ci   - all available
28e5c31af7Sopenharmony_ci + Mixed texture formats
29e5c31af7Sopenharmony_ci + Mixed texture types
30e5c31af7Sopenharmony_ci + Mixed texture parameters
31e5c31af7Sopenharmony_ci
32e5c31af7Sopenharmony_ciDescription:
33e5c31af7Sopenharmony_ci
34e5c31af7Sopenharmony_ciFor each texture unit a 2D or cube map texture is generated. Shader samples all
35e5c31af7Sopenharmony_citextures and adds scaled lookup values together to yield a value in range 0..1
36e5c31af7Sopenharmony_cifor each output component.
37e5c31af7Sopenharmony_ci
38e5c31af7Sopenharmony_ciFor each texture a separate coordinate array is generated, yielding different
39e5c31af7Sopenharmony_cisample points. Simple quad is rendered with a fragment shader that adds texture
40e5c31af7Sopenharmony_cilookup results together. Resulting image is compared against a reference image
41e5c31af7Sopenharmony_ciproduced by a reference renderer.
42