summaryrefslogtreecommitdiffstats
path: root/src/video_core/fsr.h
diff options
context:
space:
mode:
authorWollnashorn <Wollnashorn@users.noreply.github.com>2023-01-01 19:22:46 +0100
committerWollnashorn <Wollnashorn@users.noreply.github.com>2023-01-26 21:43:33 +0100
commitc4a49eb1ddc1da32e4f915fd7421161cedee2e8f (patch)
tree5a01c85a2885b9986e217cfb53dc977dfa3dd242 /src/video_core/fsr.h
parentMerge pull request #9642 from Tachi107/appstream-metadata-fix (diff)
downloadyuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.tar
yuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.tar.gz
yuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.tar.bz2
yuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.tar.lz
yuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.tar.xz
yuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.tar.zst
yuzu-c4a49eb1ddc1da32e4f915fd7421161cedee2e8f.zip
Diffstat (limited to 'src/video_core/fsr.h')
-rw-r--r--src/video_core/fsr.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/video_core/fsr.h b/src/video_core/fsr.h
new file mode 100644
index 000000000..db0d4ec6f
--- /dev/null
+++ b/src/video_core/fsr.h
@@ -0,0 +1,19 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "common/bit_cast.h"
+#include "common/common_types.h"
+
+namespace FSR {
+// Reimplementations of the constant generating functions in ffx_fsr1.h
+// GCC generated a lot of warnings when using the official header.
+void FsrEasuConOffset(u32 con0[4], u32 con1[4], u32 con2[4], u32 con3[4],
+ f32 inputViewportInPixelsX, f32 inputViewportInPixelsY,
+ f32 inputSizeInPixelsX, f32 inputSizeInPixelsY, f32 outputSizeInPixelsX,
+ f32 outputSizeInPixelsY, f32 inputOffsetInPixelsX, f32 inputOffsetInPixelsY);
+
+void FsrRcasCon(u32* con, f32 sharpness);
+
+} // namespace FSR