convert.h 712 B

12345678910111213141516171819202122
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. namespace VideoCore::Surface {
  7. enum class PixelFormat;
  8. }
  9. namespace Tegra::Texture {
  10. void ConvertFromGuestToHost(u8* in_data, u8* out_data, VideoCore::Surface::PixelFormat pixel_format,
  11. u32 width, u32 height, u32 depth, bool convert_astc,
  12. bool convert_s8z24);
  13. void ConvertFromHostToGuest(u8* data, VideoCore::Surface::PixelFormat pixel_format, u32 width,
  14. u32 height, u32 depth, bool convert_astc, bool convert_s8z24);
  15. } // namespace Tegra::Texture