1------------------------------------------------------------------------- 2drawElements Quality Program Test Specification 3----------------------------------------------- 4 5Copyright 2014 The Android Open Source Project 6 7Licensed under the Apache License, Version 2.0 (the "License"); 8you may not use this file except in compliance with the License. 9You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13Unless required by applicable law or agreed to in writing, software 14distributed under the License is distributed on an "AS IS" BASIS, 15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16See the License for the specific language governing permissions and 17limitations under the License. 18------------------------------------------------------------------------- 19 Shadow compare tests 20 21Tests: 22 + dEQP-GLES3.functional.texture.shadow.* 23 24Includes: 25 + All depth comparison modes 26 + Texture formats with depth and depth_stencil internal formats 27 + All texture filtering modes with minification and magnification. 28 + 2D, 2D array and cube map textures 29 30Excludes: 31 32Description: 33 34Shadow compare tests render two adjecent quads. Left one has texture 35coordinates choosed to trigger minification while right one tests 36magnification. Reference value for depth comparison is uniform. 37 38The rendered image is compared against a reference that is produced by 39reference renderer. A simple threshold-based comparison is used. 40 41In tests where filtering mode is not NEAREST or NEAREST_MIPMAP_NEAREST 42all r values are accepted if reference image contains r that is not 43exactly 0 or 1. Reference is computed using executing comparisons 44for all texels and combining results in same fashion as in regular 45texture lookups. 46