summaryrefslogtreecommitdiff
path: root/src/video_core/textures/convert.h
diff options
context:
space:
mode:
authorGravatar bunnei2019-03-06 21:56:20 -0500
committerGravatar GitHub2019-03-06 21:56:20 -0500
commit076c76f4e41602f94c06e23f5d1f1ff1cddca95b (patch)
treeb24cdf1f99ae12647dab27acec7fd0e00efdf506 /src/video_core/textures/convert.h
parentMerge pull request #2197 from lioncash/include (diff)
parentgl_rasterizer_cache: Move format conversion to its own file (diff)
downloadyuzu-076c76f4e41602f94c06e23f5d1f1ff1cddca95b.tar.gz
yuzu-076c76f4e41602f94c06e23f5d1f1ff1cddca95b.tar.xz
yuzu-076c76f4e41602f94c06e23f5d1f1ff1cddca95b.zip
Merge pull request #2149 from ReinUsesLisp/decoders-style
gl_rasterizer_cache: Move format conversion functions to their own file
Diffstat (limited to 'src/video_core/textures/convert.h')
-rw-r--r--src/video_core/textures/convert.h18
1 files changed, 18 insertions, 0 deletions
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 @@
1// Copyright 2019 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "common/common_types.h"
8#include "video_core/surface.h"
9
10namespace Tegra::Texture {
11
12void ConvertFromGuestToHost(u8* data, VideoCore::Surface::PixelFormat pixel_format, u32 width,
13 u32 height, u32 depth, bool convert_astc, bool convert_s8z24);
14
15void ConvertFromHostToGuest(u8* data, VideoCore::Surface::PixelFormat pixel_format, u32 width,
16 u32 height, u32 depth, bool convert_astc, bool convert_s8z24);
17
18} // namespace Tegra::Texture \ No newline at end of file