diff options
author | Fernando S <fsahmkow27@gmail.com> | 2024-02-02 15:08:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 15:08:06 +0100 |
commit | 58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53 (patch) | |
tree | a6efdfb4de7a7bac87926f6f1e93e7275634c731 /src/video_core/framebuffer_config.h | |
parent | Merge pull request #12878 from zhaobot/tx-update-20240201020554 (diff) | |
parent | hardware_composer: implement speed limit extensions (diff) | |
download | yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.gz yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.bz2 yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.lz yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.xz yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.zst yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.zip |
Diffstat (limited to 'src/video_core/framebuffer_config.h')
-rw-r--r-- | src/video_core/framebuffer_config.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h index 856f4bd52..6a18b76fb 100644 --- a/src/video_core/framebuffer_config.h +++ b/src/video_core/framebuffer_config.h @@ -7,6 +7,7 @@ #include "common/math_util.h" #include "core/hle/service/nvnflinger/buffer_transform_flags.h" #include "core/hle/service/nvnflinger/pixel_format.h" +#include "core/hle/service/nvnflinger/ui/fence.h" namespace Tegra { @@ -21,7 +22,10 @@ struct FramebufferConfig { u32 stride{}; Service::android::PixelFormat pixel_format{}; Service::android::BufferTransformFlags transform_flags{}; - Common::Rectangle<int> crop_rect; + Common::Rectangle<int> crop_rect{}; }; +Common::Rectangle<f32> NormalizeCrop(const FramebufferConfig& framebuffer, u32 texture_width, + u32 texture_height); + } // namespace Tegra |