xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/angle_format_data.json (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1{
2  "B5G6R5_UNORM": {
3    "fboImplementationInternalFormat": "GL_RGB565"
4  },
5  "B5G5R5A1_UNORM": {
6    "fboImplementationInternalFormat": "GL_RGB5_A1",
7    "channelStruct": "A1R5G5B5"
8  },
9  "B8G8R8X8_UNORM": {
10    "glInternalFormat": "GL_BGRA8_EXT",
11    "channelStruct": "B8G8R8X8"
12  },
13  "R8G8B8X8_UNORM": {
14    "glInternalFormat": "GL_RGBX8_ANGLE",
15    "channelStruct": "R8G8B8X8"
16  },
17  "R9G9B9E5_SHAREDEXP": {
18    "componentType":  "float",
19    "channelStruct":  "R9G9B9E5"
20  },
21  "B4G4R4A4_UNORM": {
22    "fboImplementationInternalFormat": "GL_RGBA4",
23    "channelStruct":  "A4R4G4B4"
24  },
25  "R8G8B8A8_UNORM_SRGB": {
26    "channelStruct":  "R8G8B8A8SRGB"
27  },
28  "R8G8B8A8_TYPELESS": {
29    "glInternalFormat": "GL_RGBA8"
30  },
31  "R8G8B8A8_TYPELESS_SRGB": {
32    "glInternalFormat": "GL_SRGB8_ALPHA8"
33  },
34  "B8G8R8A8_TYPELESS": {
35    "glInternalFormat": "GL_BGRA8_EXT"
36  },
37  "B8G8R8A8_TYPELESS_SRGB": {
38    "glInternalFormat": "GL_BGRA8_SRGB_ANGLEX"
39  },
40  "B8G8R8X8_UNORM_SRGB": {
41    "glInternalFormat": "GL_BGRX8_SRGB_ANGLEX"
42  },
43  "R8G8B8X8_UNORM_SRGB": {
44    "glInternalFormat": "GL_RGBX8_SRGB_ANGLEX"
45  },
46  "ASTC_4x4_SRGB_BLOCK": {
47    "blockPixelBytes": "16"
48  },
49  "ASTC_4x4_UNORM_BLOCK": {
50    "blockPixelBytes": "16"
51  },
52  "ASTC_5x4_SRGB_BLOCK": {
53    "blockPixelBytes": "16"
54  },
55  "ASTC_5x4_UNORM_BLOCK": {
56    "blockPixelBytes": "16"
57  },
58  "ASTC_5x5_SRGB_BLOCK": {
59    "blockPixelBytes": "16"
60  },
61  "ASTC_5x5_UNORM_BLOCK": {
62    "blockPixelBytes": "16"
63  },
64  "ASTC_6x5_SRGB_BLOCK": {
65    "blockPixelBytes": "16"
66  },
67  "ASTC_6x5_UNORM_BLOCK": {
68    "blockPixelBytes": "16"
69  },
70  "ASTC_6x6_SRGB_BLOCK": {
71    "blockPixelBytes": "16"
72  },
73  "ASTC_6x6_UNORM_BLOCK": {
74    "blockPixelBytes": "16"
75  },
76  "ASTC_8x5_SRGB_BLOCK": {
77    "blockPixelBytes": "16"
78  },
79  "ASTC_8x5_UNORM_BLOCK": {
80    "blockPixelBytes": "16"
81  },
82  "ASTC_8x6_SRGB_BLOCK": {
83    "blockPixelBytes": "16"
84  },
85  "ASTC_8x6_UNORM_BLOCK": {
86    "blockPixelBytes": "16"
87  },
88  "ASTC_8x8_SRGB_BLOCK": {
89    "blockPixelBytes": "16"
90  },
91  "ASTC_8x8_UNORM_BLOCK": {
92    "blockPixelBytes": "16"
93  },
94  "ASTC_10x5_SRGB_BLOCK": {
95    "blockPixelBytes": "16"
96  },
97  "ASTC_10x5_UNORM_BLOCK": {
98    "blockPixelBytes": "16"
99  },
100  "ASTC_10x6_SRGB_BLOCK": {
101    "blockPixelBytes": "16"
102  },
103  "ASTC_10x6_UNORM_BLOCK": {
104    "blockPixelBytes": "16"
105  },
106  "ASTC_10x8_SRGB_BLOCK": {
107    "blockPixelBytes": "16"
108  },
109  "ASTC_10x8_UNORM_BLOCK": {
110    "blockPixelBytes": "16"
111  },
112  "ASTC_10x10_SRGB_BLOCK": {
113    "blockPixelBytes": "16"
114  },
115  "ASTC_10x10_UNORM_BLOCK": {
116    "blockPixelBytes": "16"
117  },
118  "ASTC_12x10_SRGB_BLOCK": {
119    "blockPixelBytes": "16"
120  },
121  "ASTC_12x10_UNORM_BLOCK": {
122    "blockPixelBytes": "16"
123  },
124  "ASTC_12x12_SRGB_BLOCK": {
125    "blockPixelBytes": "16"
126  },
127  "ASTC_12x12_UNORM_BLOCK": {
128    "blockPixelBytes": "16"
129  },
130  "ASTC_3x3x3_UNORM_BLOCK": {
131    "blockPixelBytes": "16"
132  },
133  "ASTC_4x3x3_UNORM_BLOCK": {
134    "blockPixelBytes": "16"
135  },
136  "ASTC_4x4x3_UNORM_BLOCK": {
137    "blockPixelBytes": "16"
138  },
139  "ASTC_4x4x4_UNORM_BLOCK": {
140    "blockPixelBytes": "16"
141  },
142  "ASTC_5x4x4_UNORM_BLOCK": {
143    "blockPixelBytes": "16"
144  },
145  "ASTC_5x5x4_UNORM_BLOCK": {
146    "blockPixelBytes": "16"
147  },
148  "ASTC_5x5x5_UNORM_BLOCK": {
149    "blockPixelBytes": "16"
150  },
151  "ASTC_6x5x5_UNORM_BLOCK": {
152    "blockPixelBytes": "16"
153  },
154  "ASTC_6x6x5_UNORM_BLOCK": {
155    "blockPixelBytes": "16"
156  },
157  "ASTC_6x6x6_UNORM_BLOCK": {
158    "blockPixelBytes": "16"
159  },
160  "ASTC_3x3x3_UNORM_SRGB_BLOCK": {
161    "blockPixelBytes": "16"
162  },
163  "ASTC_4x3x3_UNORM_SRGB_BLOCK": {
164    "blockPixelBytes": "16"
165  },
166  "ASTC_4x4x3_UNORM_SRGB_BLOCK": {
167    "blockPixelBytes": "16"
168  },
169  "ASTC_4x4x4_UNORM_SRGB_BLOCK": {
170    "blockPixelBytes": "16"
171  },
172  "ASTC_5x4x4_UNORM_SRGB_BLOCK": {
173    "blockPixelBytes": "16"
174  },
175  "ASTC_5x5x4_UNORM_SRGB_BLOCK": {
176    "blockPixelBytes": "16"
177  },
178  "ASTC_5x5x5_UNORM_SRGB_BLOCK": {
179    "blockPixelBytes": "16"
180  },
181  "ASTC_6x5x5_UNORM_SRGB_BLOCK": {
182    "blockPixelBytes": "16"
183  },
184  "ASTC_6x6x5_UNORM_SRGB_BLOCK": {
185    "blockPixelBytes": "16"
186  },
187  "ASTC_6x6x6_UNORM_SRGB_BLOCK": {
188    "blockPixelBytes": "16"
189  },
190  "BC1_RGB_UNORM_BLOCK": {
191    "blockPixelBytes": "8"
192  },
193  "BC1_RGBA_UNORM_BLOCK": {
194    "blockPixelBytes": "8"
195  },
196  "BC1_RGBA_UNORM_SRGB_BLOCK": {
197    "blockPixelBytes": "8"
198  },
199  "BC1_RGB_UNORM_SRGB_BLOCK": {
200    "blockPixelBytes": "8"
201  },
202  "BC2_RGBA_UNORM_BLOCK": {
203    "blockPixelBytes": "16"
204  },
205  "BC2_RGBA_UNORM_SRGB_BLOCK": {
206    "blockPixelBytes": "16"
207  },
208  "BC3_RGBA_UNORM_BLOCK": {
209    "blockPixelBytes": "16"
210  },
211  "BC3_RGBA_UNORM_SRGB_BLOCK": {
212    "blockPixelBytes": "16"
213  },
214  "BC4_RED_UNORM_BLOCK": {
215    "blockPixelBytes": "8"
216  },
217  "BC4_RED_SNORM_BLOCK": {
218    "blockPixelBytes": "8"
219  },
220  "BC5_RG_UNORM_BLOCK": {
221    "blockPixelBytes": "16"
222  },
223  "BC5_RG_SNORM_BLOCK": {
224    "blockPixelBytes": "16"
225  },
226  "BC6H_RGB_UFLOAT_BLOCK": {
227    "blockPixelBytes": "16"
228  },
229  "BC6H_RGB_SFLOAT_BLOCK": {
230    "blockPixelBytes": "16"
231  },
232  "BC7_RGBA_UNORM_BLOCK": {
233    "blockPixelBytes": "16"
234  },
235  "BC7_RGBA_UNORM_SRGB_BLOCK": {
236    "blockPixelBytes": "16"
237  },
238  "EAC_R11_SNORM_BLOCK": {
239    "blockPixelBytes": "8"
240  },
241  "EAC_R11_UNORM_BLOCK": {
242    "blockPixelBytes": "8"
243  },
244  "EAC_R11G11_SNORM_BLOCK": {
245    "blockPixelBytes": "16"
246  },
247  "EAC_R11G11_UNORM_BLOCK": {
248    "blockPixelBytes": "16"
249  },
250  "ETC1_R8G8B8_UNORM_BLOCK": {
251    "blockPixelBytes": "8"
252  },
253  "ETC1_LOSSY_DECODE_R8G8B8_UNORM_BLOCK": {
254    "blockPixelBytes": "8"
255  },
256  "ETC2_R8G8B8_SRGB_BLOCK": {
257    "blockPixelBytes": "8"
258  },
259  "ETC2_R8G8B8_UNORM_BLOCK": {
260    "blockPixelBytes": "8"
261  },
262  "ETC2_R8G8B8A1_SRGB_BLOCK": {
263    "blockPixelBytes": "8"
264  },
265  "ETC2_R8G8B8A1_UNORM_BLOCK": {
266    "blockPixelBytes": "8"
267  },
268  "ETC2_R8G8B8A8_UNORM_BLOCK": {
269    "blockPixelBytes": "16"
270  },
271  "ETC2_R8G8B8A8_SRGB_BLOCK": {
272    "blockPixelBytes": "16"
273  },
274  "PVRTC1_RGB_4BPP_UNORM_BLOCK": {
275    "blockPixelBytes": "8"
276  },
277  "PVRTC1_RGB_2BPP_UNORM_BLOCK": {
278    "blockPixelBytes": "8"
279  },
280  "PVRTC1_RGBA_4BPP_UNORM_BLOCK": {
281    "blockPixelBytes": "8"
282  },
283  "PVRTC1_RGBA_2BPP_UNORM_BLOCK": {
284    "blockPixelBytes": "8"
285  },
286  "PVRTC1_RGB_2BPP_UNORM_SRGB_BLOCK": {
287    "blockPixelBytes": "8"
288  },
289  "PVRTC1_RGB_4BPP_UNORM_SRGB_BLOCK": {
290    "blockPixelBytes": "8"
291  },
292  "PVRTC1_RGBA_2BPP_UNORM_SRGB_BLOCK": {
293    "blockPixelBytes": "8"
294  },
295  "PVRTC1_RGBA_4BPP_UNORM_SRGB_BLOCK": {
296    "blockPixelBytes": "8"
297  },
298  "G8_B8_R8_3PLANE_420_UNORM": {
299    "channelStruct": "R8G8B8"
300  },
301  "G8_B8R8_2PLANE_420_UNORM": {
302    "channelStruct": "R8G8B8"
303  }
304}
305