Fix border color (#1548)

This commit is contained in:
Vladislav Mikhalin 2024-11-19 19:55:05 +03:00 committed by GitHub
parent 8fbd9187f8
commit c45af9a2ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -358,8 +358,8 @@ enum class MipFilter : u64 {
};
enum class BorderColor : u64 {
OpaqueBlack = 0,
TransparentBlack = 1,
TransparentBlack = 0,
OpaqueBlack = 1,
White = 2,
Custom = 3,
};

View file

@ -285,10 +285,10 @@ vk::SamplerMipmapMode MipFilter(AmdGpu::MipFilter filter) {
vk::BorderColor BorderColor(AmdGpu::BorderColor color) {
switch (color) {
case AmdGpu::BorderColor::OpaqueBlack:
return vk::BorderColor::eFloatOpaqueBlack;
case AmdGpu::BorderColor::TransparentBlack:
return vk::BorderColor::eFloatTransparentBlack;
case AmdGpu::BorderColor::OpaqueBlack:
return vk::BorderColor::eFloatOpaqueBlack;
case AmdGpu::BorderColor::White:
return vk::BorderColor::eFloatOpaqueWhite;
case AmdGpu::BorderColor::Custom: