зеркало из https://github.com/AvaloniaUI/angle.git
Vulkan: Add 565 configs for Android
Generate GL_RGB565 internal format configs for Android VK. This allows apps requesting such formats to map to the appropriate corresponding Android internal pixel format. Bug: angleproject:2863 Change-Id: I18f119d6554a601037a40db27234bf33e0ada438 Reviewed-on: https://chromium-review.googlesource.com/c/1258083 Commit-Queue: Tobin Ehlis <tobine@google.com> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Родитель
44a6fbfd95
Коммит
607f907d47
|
@ -47,7 +47,7 @@ SurfaceImpl *DisplayVkAndroid::createWindowSurfaceVk(const egl::SurfaceState &st
|
||||||
|
|
||||||
egl::ConfigSet DisplayVkAndroid::generateConfigs()
|
egl::ConfigSet DisplayVkAndroid::generateConfigs()
|
||||||
{
|
{
|
||||||
constexpr GLenum kColorFormats[] = {GL_RGBA8, GL_RGB8};
|
constexpr GLenum kColorFormats[] = {GL_RGBA8, GL_RGB8, GL_RGB565};
|
||||||
constexpr EGLint kSampleCounts[] = {0};
|
constexpr EGLint kSampleCounts[] = {0};
|
||||||
return egl_vk::GenerateConfigs(kColorFormats, egl_vk::kConfigDepthStencilFormats, kSampleCounts,
|
return egl_vk::GenerateConfigs(kColorFormats, egl_vk::kConfigDepthStencilFormats, kSampleCounts,
|
||||||
this);
|
this);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче