From 0ad3c031f4f0e1db16e271ed1329e2c4bad33e10 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sat, 23 Feb 2019 22:45:47 -0300 Subject: gl_rasterizer_cache: Move format conversion to its own file --- src/video_core/textures/convert.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/video_core/textures/convert.h (limited to 'src/video_core/textures/convert.h') diff --git a/src/video_core/textures/convert.h b/src/video_core/textures/convert.h new file mode 100644 index 000000000..07cd8b5da --- /dev/null +++ b/src/video_core/textures/convert.h @@ -0,0 +1,18 @@ +// 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" +#include "video_core/surface.h" + +namespace Tegra::Texture { + +void ConvertFromGuestToHost(u8* 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 \ No newline at end of file -- cgit v1.2.3