tree: 776aedee3a33f269d163e57e160456b3813caa19
  1. cl/
  2. d3d/
  3. gl/
  4. metal/
  5. null/
  6. vulkan/
  7. wgpu/
  8. angle_cl_format_map.json
  9. angle_format.py
  10. angle_format_data.json
  11. angle_format_map.json
  12. BufferImpl.cpp
  13. BufferImpl.h
  14. BufferImpl_mock.h
  15. cl_types.h
  16. CLCommandQueueImpl.cpp
  17. CLCommandQueueImpl.h
  18. CLContextImpl.cpp
  19. CLContextImpl.h
  20. CLDeviceImpl.cpp
  21. CLDeviceImpl.h
  22. CLEventImpl.cpp
  23. CLEventImpl.h
  24. CLExtensions.cpp
  25. CLExtensions.h
  26. CLKernelImpl.cpp
  27. CLKernelImpl.h
  28. CLMemoryImpl.cpp
  29. CLMemoryImpl.h
  30. CLPlatformImpl.cpp
  31. CLPlatformImpl.h
  32. CLProgramImpl.cpp
  33. CLProgramImpl.h
  34. CLSamplerImpl.cpp
  35. CLSamplerImpl.h
  36. CompilerImpl.h
  37. ContextImpl.cpp
  38. ContextImpl.h
  39. copyvertex.h
  40. copyvertex.inc.h
  41. DeviceImpl.cpp
  42. DeviceImpl.h
  43. DisplayImpl.cpp
  44. DisplayImpl.h
  45. driver_utils.cpp
  46. driver_utils.h
  47. driver_utils_ios.mm
  48. driver_utils_mac.mm
  49. dxgi_format_data.json
  50. dxgi_format_map.h
  51. dxgi_format_map_autogen.cpp
  52. dxgi_support_data.json
  53. dxgi_support_table.h
  54. dxgi_support_table_autogen.cpp
  55. EGLImplFactory.h
  56. EGLReusableSync.cpp
  57. EGLReusableSync.h
  58. EGLSyncImpl.cpp
  59. EGLSyncImpl.h
  60. FenceNVImpl.h
  61. Format.h
  62. Format_table_autogen.cpp
  63. FormatID_autogen.h
  64. FramebufferAttachmentObjectImpl.h
  65. FramebufferImpl.cpp
  66. FramebufferImpl.h
  67. FramebufferImpl_mock.h
  68. gen_angle_format_table.py
  69. gen_dxgi_format_table.py
  70. gen_dxgi_support_tables.py
  71. gen_load_functions_table.py
  72. GLImplFactory.h
  73. ImageImpl.cpp
  74. ImageImpl.h
  75. ImageImpl_mock.h
  76. load_functions_data.json
  77. load_functions_table.h
  78. load_functions_table_autogen.cpp
  79. MemoryObjectImpl.h
  80. ProgramExecutableImpl.h
  81. ProgramImpl.cpp
  82. ProgramImpl.h
  83. ProgramImpl_mock.h
  84. ProgramPipelineImpl.cpp
  85. ProgramPipelineImpl.h
  86. QueryImpl.cpp
  87. QueryImpl.h
  88. README.md
  89. RenderbufferImpl.cpp
  90. RenderbufferImpl.h
  91. RenderbufferImpl_mock.h
  92. renderer_utils.cpp
  93. renderer_utils.h
  94. RenderTargetCache.h
  95. SamplerImpl.h
  96. SemaphoreImpl.h
  97. serial_utils.h
  98. serial_utils_unittest.cpp
  99. ShaderImpl.cpp
  100. ShaderImpl.h
  101. ShareGroupImpl.h
  102. StreamProducerImpl.h
  103. SurfaceImpl.cpp
  104. SurfaceImpl.h
  105. SyncImpl.h
  106. TextureImpl.cpp
  107. TextureImpl.h
  108. TextureImpl_mock.h
  109. TransformFeedbackImpl.cpp
  110. TransformFeedbackImpl.h
  111. TransformFeedbackImpl_mock.h
  112. VertexArrayImpl.cpp
  113. VertexArrayImpl.h
src/libANGLE/renderer/README.md

ANGLE back-ends

This folder contains shared back-end-specific implementation files. The classes and types in renderer are not specified by GLES. They instead are common to all the various ANGLE implementations.

See renderer_utils.h for various cross back-end utilties.

ANGLE Formats

The ANGLE format class, angle::Format, works as a union between GLES and all the various back-end formats. It can represent any type of format in ANGLE. e.g. Formats in Vulkan that don‘t exist in GLES, or DXGI formats that don’t exist in GLES, or Windows/Android surface configs that don't exist anywhere else.

The glInternalFormat member of angle::Format represents the “closest” GL format for an ANGLE format. For formats that don't exist in GLES this will not be exactly what the format represents.

The back-ends also define their own format tables. See the Vulkan Format table docs and the [D3D11 format table docs][D23D11FormatDocs].

DXGI Format Info

DXGI formats are used in both the GL and D3D11 back-end. Therefore the generated info table lives in this common shared location.

The DXGI info table is generated by gen_dxgi_format_table.py and sources data from dxgi_format_data.json. The main purpose of the table is to convert from a DXGI format to an ANGLE format, where the ANGLE format should have all the necessary information.