tree: cd8cd0c2dad21cc8a8a694e9c391fec3a2f51d7b [path history] [tgz]
  1. cl/
  2. d3d/
  3. gl/
  4. metal/
  5. null/
  6. vulkan/
  7. angle_format.py
  8. angle_format_data.json
  9. angle_format_map.json
  10. BufferImpl.cpp
  11. BufferImpl.h
  12. BufferImpl_mock.h
  13. CLCommandQueueImpl.cpp
  14. CLCommandQueueImpl.h
  15. CLContextImpl.cpp
  16. CLContextImpl.h
  17. CLDeviceImpl.cpp
  18. CLDeviceImpl.h
  19. CLEventImpl.cpp
  20. CLEventImpl.h
  21. CLExtensions.cpp
  22. CLExtensions.h
  23. CLKernelImpl.cpp
  24. CLKernelImpl.h
  25. CLMemoryImpl.cpp
  26. CLMemoryImpl.h
  27. CLPlatformImpl.cpp
  28. CLPlatformImpl.h
  29. CLProgramImpl.cpp
  30. CLProgramImpl.h
  31. CLSamplerImpl.cpp
  32. CLSamplerImpl.h
  33. CLtypes.h
  34. CompilerImpl.h
  35. ContextImpl.cpp
  36. ContextImpl.h
  37. copyvertex.h
  38. copyvertex.inc.h
  39. d3d_format.cpp
  40. d3d_format.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. OverlayImpl.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. StreamProducerImpl.h
  102. SurfaceImpl.cpp
  103. SurfaceImpl.h
  104. SyncImpl.h
  105. TextureImpl.cpp
  106. TextureImpl.h
  107. TextureImpl_mock.h
  108. TransformFeedbackImpl.cpp
  109. TransformFeedbackImpl.h
  110. TransformFeedbackImpl_mock.h
  111. VertexArrayImpl.cpp
  112. 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.