xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/d3d/d3d11/FormatTables.md (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# D3D11 back-end format tables
2
3The D3D11 back-end uses a code generator to initialize D3D11 format info.
4The generator is [`gen_texture_format_table.py`](gen_texture_format_table.py)
5and uses data stored in [`texture_format_data.json`](texture_format_data.json)
6and [`texture_format_map.json`](texture_format_map.json). The "format map"
7maps from a GLES front-end format to the ANGLE format which represents the
8format we use in D3D11. The "format data" indicates which DXGI formats we
9use to represent an ANGLE format in the D3D11 back-end.
10
11Note that the "format data" can also encode support for fallback formats.
12The `supportTest` attribute indicates a runtime check we can use to determine
13if we should use the `fallbackFormat` instead of the default format.
14