summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/convert.h
blob: d5d6c77bb211cbb46937f5f3a11d5222ca3326b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2019 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include "common/common_types.h"

namespace VideoCore::Surface {
enum class PixelFormat;
}

namespace Tegra::Texture {

void ConvertFromGuestToHost(u8* in_data, u8* out_data, VideoCore::Surface::PixelFormat pixel_format,
                            u32 width, u32 height, u32 depth, bool convert_astc,
                            bool convert_s8z24);

void ConvertFromHostToGuest(u8* data, VideoCore::Surface::PixelFormat pixel_format, u32 width,
                            u32 height, u32 depth, bool convert_astc, bool convert_s8z24);

} // namespace Tegra::Texture