summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/es3_copy_conversion_formats.json
blob: 39b71fd93a74b87ce4dce0935b1c737ae514fdc8 (plain)
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
{
    "From ES 3.0.1 spec, table 3.15":
    [
        [ "GL_ALPHA", "GL_RGBA" ],
        [ "GL_LUMINANCE", "GL_RED" ],
        [ "GL_LUMINANCE", "GL_RG" ],
        [ "GL_LUMINANCE", "GL_RGB" ],
        [ "GL_LUMINANCE", "GL_RGBA" ],
        [ "GL_LUMINANCE_ALPHA", "GL_RGBA" ],
        [ "GL_RED", "GL_RED" ],
        [ "GL_RED", "GL_RG" ],
        [ "GL_RED", "GL_RGB" ],
        [ "GL_RED", "GL_RGBA" ],
        [ "GL_RG", "GL_RG" ],
        [ "GL_RG", "GL_RGB" ],
        [ "GL_RG", "GL_RGBA" ],
        [ "GL_RGB", "GL_RGB" ],
        [ "GL_RGB", "GL_RGBA" ],
        [ "GL_RGBA", "GL_RGBA" ]
    ],

    "Necessary for ANGLE back-buffers":
    [
        [ "GL_ALPHA", "GL_BGRA_EXT" ],
        [ "GL_LUMINANCE", "GL_BGRA_EXT" ],
        [ "GL_LUMINANCE_ALPHA", "GL_BGRA_EXT" ],
        [ "GL_RED", "GL_BGRA_EXT" ],
        [ "GL_RG", "GL_BGRA_EXT" ],
        [ "GL_RGB", "GL_BGRA_EXT" ],
        [ "GL_RGBA", "GL_BGRA_EXT" ],
        [ "GL_BGRA_EXT", "GL_BGRA_EXT" ],

        [ "GL_RED_INTEGER", "GL_RED_INTEGER" ],
        [ "GL_RED_INTEGER", "GL_RG_INTEGER" ],
        [ "GL_RED_INTEGER", "GL_RGB_INTEGER" ],
        [ "GL_RED_INTEGER", "GL_RGBA_INTEGER" ],
        [ "GL_RG_INTEGER", "GL_RG_INTEGER" ],
        [ "GL_RG_INTEGER", "GL_RGB_INTEGER" ],
        [ "GL_RG_INTEGER", "GL_RGBA_INTEGER" ],
        [ "GL_RGB_INTEGER", "GL_RGB_INTEGER" ],
        [ "GL_RGB_INTEGER", "GL_RGBA_INTEGER" ],
        [ "GL_RGBA_INTEGER", "GL_RGBA_INTEGER" ]
    ]
}