aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/framebuffer_config.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-03 22:46:59 -0500
committerLiam <byteslice@airmail.cc>2024-01-31 11:27:20 -0500
commit80de01a5b4a7f57ec7850079fbd38fac76b9d08f (patch)
tree18086d7a71ffcd9f5bc6651aec20de37e3b1c33d /src/video_core/framebuffer_config.h
parent7cc7d027f74b5bffc0b3f8f3a6c3110999c7cc4c (diff)
video_core: simplify accelerated surface fetch and crop handling between APIs
Diffstat (limited to 'src/video_core/framebuffer_config.h')
-rw-r--r--src/video_core/framebuffer_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h
index 856f4bd52..10ddc75a7 100644
--- a/src/video_core/framebuffer_config.h
+++ b/src/video_core/framebuffer_config.h
@@ -24,4 +24,7 @@ struct FramebufferConfig {
Common::Rectangle<int> crop_rect;
};
+Common::Rectangle<f32> NormalizeCrop(const FramebufferConfig& framebuffer, u32 texture_width,
+ u32 texture_height);
+
} // namespace Tegra