framebuffer_config.h 674 B

123456789101112131415161718192021222324252627
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/common_types.h"
  5. #include "common/math_util.h"
  6. #include "core/hle/service/nvnflinger/buffer_transform_flags.h"
  7. #include "core/hle/service/nvnflinger/pixel_format.h"
  8. namespace Tegra {
  9. /**
  10. * Struct describing framebuffer configuration
  11. */
  12. struct FramebufferConfig {
  13. VAddr address{};
  14. u32 offset{};
  15. u32 width{};
  16. u32 height{};
  17. u32 stride{};
  18. Service::android::PixelFormat pixel_format{};
  19. Service::android::BufferTransformFlags transform_flags{};
  20. Common::Rectangle<int> crop_rect;
  21. };
  22. } // namespace Tegra