decode_bc.h 544 B

12345678910111213141516171819
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <span>
  5. #include "common/common_types.h"
  6. #include "video_core/surface.h"
  7. #include "video_core/texture_cache/types.h"
  8. namespace VideoCommon {
  9. [[nodiscard]] u32 ConvertedBytesPerBlock(VideoCore::Surface::PixelFormat pixel_format);
  10. void DecompressBCn(std::span<const u8> input, std::span<u8> output, Extent3D extent,
  11. VideoCore::Surface::PixelFormat pixel_format);
  12. } // namespace VideoCommon