Hash :
45965e72
Author :
Date :
2021-06-17T10:21:26
Vulkan: Translate border color's channel by image view format ANGLE implementes some formats as other formats,such as ALPHA8 to R8, this caused some tests failed due to missing border color's channel translation,this change add a new textureBorderLoadFunction to translate channels of border color by image view format. Bug: angleproject:6046 Change-Id: I94ce719b4db3724ffd3dc862b51a412b5d9f3cce Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2972328 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// loadtextureborder.cpp: Defines border color load functions.
#include "image_util/loadtextureborder.h"
namespace angle
{
void LoadA8ToR8(angle::ColorF &mBorderColor)
{
mBorderColor.red = mBorderColor.alpha;
mBorderColor.alpha = 0;
}
void LoadLA8ToR8G8(angle::ColorF &mBorderColor)
{
mBorderColor.green = mBorderColor.alpha;
mBorderColor.alpha = 0;
}
void LoadToNative(angle::ColorF &mBorderColor) {}
} // namespace angle