• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    Texture image specification tests
20
21Tests:
22 + dEQP-GLES2.functional.texture.teximage.*
23
24Includes:
25 + Texture upload using:
26   - glTexImage2D()
27   - glTexSubImage2D()
28 + Copy from framebuffer using:
29   - glCopyTexImage2D()
30   - glCopyTexSubImage2D()
31 + 2D and cube map texture targets
32 + Different pixel alignments in upload (GL_UNPACK_ALIGNMENT)
33 + All supported pixel formats
34 + Named and default texture objects
35
36Excludes:
37 + Compressed texture formats
38
39Description:
40
41Texture image specification tests build a complete 2D or cubemap texture
42using the texture image specification functions. The exact order and functions
43used depends on the test case.
44
45For glCopyTexImage2D() and glCopyTexSubImage2D() usage the rendering target
46is first filled with meaningful data by rendering a simple textured quad first.
47
48Reference texture object is constructed by applying reference versions of the
49same operations to a reference pixel buffer.
50
51Finally both the constructed texture is rendered using a simple quad and the
52resulting images are compared against the reference. Nearest-neighbor -filtering
53is used. For cubemap textures each face is rendered separately and all are
54verified. If mipmaps were constructed, texture is rendered multiple times
55sampling texels from different mipmap levels.
56