mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 07:15:46 +01:00
morton: Fixup compiler warning
This commit is contained in:
parent
1856d0ee8a
commit
237c2026e9
@ -183,13 +183,14 @@ static constexpr ConversionArray linear_to_morton_fns = {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) {
|
static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case MortonSwizzleMode::MortonToLinear:
|
case MortonSwizzleMode::MortonToLinear:
|
||||||
return morton_to_linear_fns[static_cast<std::size_t>(format)];
|
return morton_to_linear_fns[static_cast<std::size_t>(format)];
|
||||||
case MortonSwizzleMode::LinearToMorton:
|
case MortonSwizzleMode::LinearToMorton:
|
||||||
return linear_to_morton_fns[static_cast<std::size_t>(format)];
|
return linear_to_morton_fns[static_cast<std::size_t>(format)];
|
||||||
}
|
}
|
||||||
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 8x8 Z-Order coordinate from 2D coordinates
|
/// 8x8 Z-Order coordinate from 2D coordinates
|
||||||
|
Loading…
Reference in New Issue
Block a user