File: CHROMIUM_compressed_copy_texture.txt

package info (click to toggle)
webkit2gtk 2.51.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 457,708 kB
  • sloc: cpp: 3,884,629; javascript: 198,661; ansic: 165,298; python: 49,171; asm: 21,849; ruby: 18,095; perl: 16,914; xml: 4,623; sh: 2,397; yacc: 2,356; java: 2,019; lex: 1,330; pascal: 372; makefile: 197
file content (88 lines) | stat: -rw-r--r-- 2,557 bytes parent folder | download | duplicates (42)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name

    CHROMIUM_copy_compressed_texture

Name Strings

    GL_CHROMIUM_copy_compressed_texture

Version

    Last Modifed Date: August 5, 2015

Dependencies

    OpenGL ES 2.0 is required.

    GL_AMD_compressed_ATC_texture, GL_ATI_texture_compression_atitc,
    GL_EXT_texture_compression_dxt1, GL_ANGLE_texture_compression_dxt5,
    GL_EXT_texture_compression_s3tc and GL_OES_compressed_ETC1_RGB8_texture
    affects the definition of this extension.

Overview

    This extension provides functionality for copying compressed textures. It
    adds a new function glCompressedCopyTextureCHROMIUM that works similarily
    to glCopyTextureCHROMIUM, but for compressed textures.

    Which compressed texture formats that this extension supports depends on
    the supported texture compression formats of the host GPU.

Issues

    glCompressedCopyTextureCHROMIUM will first try to copy into a compressed
    texture of the same format as the source texture. If unsucessful, the
    destination texture format will be changed to GL_RGBA and the texture will
    be stored uncompressed.

New Procedures and Functions

    The command

        void glCompressedCopyTextureCHROMIUM (GLuint source_id, GLuint dest_id)

    Copies the contents of a compressed texture referred to by <source_id> to
    <dest_id> texture.

    Texture level 0 is copied from the source image to level 0 of the
    destination texture.

    The internal format of the source texture must be one of the following
    symbolic constants: GL_ATC_RGB_AMD, GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD,
    GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,
    GL_ETC1_RGB8_OES

    The destination texture will be created or replaced with the same internal
    format as the source texture.

    INVALID_OPERATION is generated if internal format of source texture is not
    one of the valid formats described above.

    INVALID_OPERATION is generated if destination texture is immutable.

    INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
    objects.

    INVALID_VALUE is generated if textures corresponding to <dest_id> have not
    been bound as GL_TEXTURE_2D object.

    INVALID_VALUE is generated if level 0 of the source texture is not defined.

Errors

    None.

New Tokens

    None.

New State

    None.

Revision History

    15/6/2015    Documented the extension.
    5/8/2015     Added glCompressedCopySubTextureCHROMIUM.
    1/6/2016     Remove glCompressedCopySubTextureCHROMIUM.
    1/8/2016     Remove <target> argument.