|
|
|
@ -42,7 +42,6 @@ static void MortonCopy(u32 stride, u32 block_height, u32 height, u32 block_depth |
|
|
|
} |
|
|
|
|
|
|
|
static constexpr ConversionArray morton_to_linear_fns = { |
|
|
|
// clang-format off
|
|
|
|
MortonCopy<true, PixelFormat::ABGR8U>, |
|
|
|
MortonCopy<true, PixelFormat::ABGR8S>, |
|
|
|
MortonCopy<true, PixelFormat::ABGR8UI>, |
|
|
|
@ -107,11 +106,9 @@ static constexpr ConversionArray morton_to_linear_fns = { |
|
|
|
MortonCopy<true, PixelFormat::Z24S8>, |
|
|
|
MortonCopy<true, PixelFormat::S8Z24>, |
|
|
|
MortonCopy<true, PixelFormat::Z32FS8>, |
|
|
|
// clang-format on
|
|
|
|
}; |
|
|
|
|
|
|
|
static constexpr ConversionArray linear_to_morton_fns = { |
|
|
|
// clang-format off
|
|
|
|
MortonCopy<false, PixelFormat::ABGR8U>, |
|
|
|
MortonCopy<false, PixelFormat::ABGR8S>, |
|
|
|
MortonCopy<false, PixelFormat::ABGR8UI>, |
|
|
|
@ -177,7 +174,6 @@ static constexpr ConversionArray linear_to_morton_fns = { |
|
|
|
MortonCopy<false, PixelFormat::Z24S8>, |
|
|
|
MortonCopy<false, PixelFormat::S8Z24>, |
|
|
|
MortonCopy<false, PixelFormat::Z32FS8>, |
|
|
|
// clang-format on
|
|
|
|
}; |
|
|
|
|
|
|
|
static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { |
|
|
|
|