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 | eac46ad7ceca5e35b396a8b80bfc38dc6ef1a4fe (patch) | |
| tree | 761e98947d8e26a6409e24befa99cd127f67458d /src/video_core/texture_cache/decode_bc.h | |
| parent | b8c96cee5f2eb0bd5ba9ef46746daec78ee3bb44 (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 000000000..41d1ec0a3 --- /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 |
