diff options
| author | GPUCode <geoster3d@gmail.com> | 2023-06-06 23:10:06 +0300 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2023-06-27 18:00:09 -0700 |
| commit | 5196f05cecc693a9c88ec3f08997f03857926ee4 (patch) | |
| tree | 761e98947d8e26a6409e24befa99cd127f67458d /src/video_core/texture_cache/decode_bc.h | |
| parent | 8a829a12b6098d63c06ae06155b56b2ebea6a7ba (diff) | |
video_core: Add BCn decoding support
Diffstat (limited to 'src/video_core/texture_cache/decode_bc.h')
| -rw-r--r-- | src/video_core/texture_cache/decode_bc.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/decode_bc.h b/src/video_core/texture_cache/decode_bc.h new file mode 100644 index 0000000000..41d1ec0a3a --- /dev/null +++ b/src/video_core/texture_cache/decode_bc.h @@ -0,0 +1,19 @@ +// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include <span> + +#include "common/common_types.h" +#include "video_core/surface.h" +#include "video_core/texture_cache/types.h" + +namespace VideoCommon { + +[[nodiscard]] u32 ConvertedBytesPerBlock(VideoCore::Surface::PixelFormat pixel_format); + +void DecompressBCn(std::span<const u8> input, std::span<u8> output, Extent3D extent, + VideoCore::Surface::PixelFormat pixel_format); + +} // namespace VideoCommon |
