video_core: simplify accelerated surface fetch and crop handling between APIs

This commit is contained in:
Liam
2024-01-03 22:46:59 -05:00
parent 7cc7d027f7
commit 80de01a5b4
18 changed files with 262 additions and 316 deletions

View File

@ -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