Browse Source

Update code structure

Co-Authored-By: Mat M. <mathew1800@gmail.com>
pull/15/merge
Nguyen Dac Nam 6 years ago
committed by GitHub
parent
commit
eaf60ca5d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/video_core/renderer_vulkan/vk_sampler_cache.cpp

7
src/video_core/renderer_vulkan/vk_sampler_cache.cpp

@ -26,6 +26,13 @@ static std::optional<vk::BorderColor> TryConvertBorderColor(std::array<float, 4>
if (color[0] + color[1] + color[2] > 1.35f) {
// If color elements are brighter than roughly 0.5 average, use white border
return vk::BorderColor::eFloatOpaqueWhite;
}
if (color[3] > 0.5f) {
return vk::BorderColor::eFloatOpaqueBlack;
}
return vk::BorderColor::eFloatTransparentBlack;
// If color elements are brighter than roughly 0.5 average, use white border
return vk::BorderColor::eFloatOpaqueWhite;
} else {
if (color[3] > 0.5f) {
return vk::BorderColor::eFloatOpaqueBlack;

Loading…
Cancel
Save