image_view: Reduce log spam when alpha=1 in storage swizzle
This commit is contained in:
parent
d36292873b
commit
f3a4243ad1
|
@ -50,9 +50,9 @@ vk::ComponentSwizzle ConvertComponentSwizzle(u32 dst_sel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsIdentityMapping(u32 dst_sel, u32 num_components) {
|
bool IsIdentityMapping(u32 dst_sel, u32 num_components) {
|
||||||
return (num_components == 1 && dst_sel == 0b100) ||
|
return (num_components == 1 && dst_sel == 0b001'000'000'100) ||
|
||||||
(num_components == 2 && dst_sel == 0b101'100) ||
|
(num_components == 2 && dst_sel == 0b001'000'101'100) ||
|
||||||
(num_components == 3 && dst_sel == 0b110'101'100) ||
|
(num_components == 3 && dst_sel == 0b001'110'101'100) ||
|
||||||
(num_components == 4 && dst_sel == 0b111'110'101'100);
|
(num_components == 4 && dst_sel == 0b111'110'101'100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue