mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
This change switches the internal enums we pass around from VkFormat to FormatID. The end goal of the refactor is to allow the Vulkan back-end to store packed tables indexed by FormatID. Because VkFormat has large gaps in its enum space we'd otherwise need to use unordered data structures like unordered_map. The change removes the redundant VkFormat storage from vk::Format and uses a new table query to return the VkFormat that 1:1 matches an angle::FormatID. We also include a reverse mapping for use with native Vulkan get functions for Android. Also moves sRGB conversion functions into renderer_utils. A couple sRGB formats that don't exist in GL are no longer handled by the sRGB conversion functions. These formats should be extremely rare. Bug: angleproject:5438 Change-Id: Id8b49773ca0c556f9f5a6a10fcf0d9762b93bbea Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2618204 Commit-Queue: Jamie Madill <[email protected]> Reviewed-by: Shahbaz Youssefi <[email protected]> Reviewed-by: Ian Elliott <[email protected]>
12 lines
466 B
JSON
12 lines
466 B
JSON
{
|
|
"src/libANGLE/renderer/angle_format.py":
|
|
"32ba71942c0fd00e6807104f1bb80a3c",
|
|
"src/libANGLE/renderer/angle_format_map.json":
|
|
"aa4a0d3463b76858a75787b9cdec8e98",
|
|
"src/libANGLE/renderer/vulkan/gen_vk_format_table.py":
|
|
"0bc8a6deefd856387da0bccf3817dde7",
|
|
"src/libANGLE/renderer/vulkan/vk_format_map.json":
|
|
"b62588b1e9f6d9fa98aeea886d8ed2bd",
|
|
"src/libANGLE/renderer/vulkan/vk_format_table_autogen.cpp":
|
|
"ff081c37d8dfabdf87f46af9bf8e295a"
|
|
} |