tree: f696e46f0a83c154f40451413612746a33eb28b3 [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.h
  66. FramebufferImpl_mock.h
  67. gen_angle_format_table.py
  68. gen_dxgi_format_table.py
  69. gen_dxgi_support_tables.py
  70. gen_load_functions_table.py
  71. GLImplFactory.h
  72. glslang_wrapper_utils.cpp
  73. glslang_wrapper_utils.h
  74. ImageImpl.cpp
  75. ImageImpl.h
  76. ImageImpl_mock.h
  77. load_functions_data.json
  78. load_functions_table.h
  79. load_functions_table_autogen.cpp
  80. MemoryObjectImpl.h
  81. OverlayImpl.h
  82. ProgramImpl.h
  83. ProgramImpl_mock.h
  84. ProgramPipelineImpl.cpp
  85. ProgramPipelineImpl.h
  86. QueryImpl.cpp
  87. QueryImpl.h
  88. README.md
  89. RenderbufferImpl.h
  90. RenderbufferImpl_mock.h
  91. renderer_utils.cpp
  92. renderer_utils.h
  93. RenderTargetCache.h
  94. SamplerImpl.h
  95. SemaphoreImpl.h
  96. serial_utils.h
  97. serial_utils_unittest.cpp
  98. ShaderImpl.cpp
  99. ShaderImpl.h
  100. ShaderInterfaceVariableInfoMap.cpp
  101. ShaderInterfaceVariableInfoMap.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.h
  110. TransformFeedbackImpl_mock.h
  111. 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.