yuzu-early/src/video_core/framebuffer_config.h

28 lines
701 B
C
Raw Normal View History

2022-11-05 13:58:44 +01:00
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "common/common_types.h"
#include "common/math_util.h"
2023-03-04 09:58:45 +01:00
#include "core/hle/service/nvnflinger/buffer_transform_flags.h"
#include "core/hle/service/nvnflinger/pixel_format.h"
2022-11-05 13:58:44 +01:00
namespace Tegra {
/**
* Struct describing framebuffer configuration
*/
struct FramebufferConfig {
VAddr address{};
u32 offset{};
u32 width{};
u32 height{};
u32 stride{};
Service::android::PixelFormat pixel_format{};
Service::android::BufferTransformFlags transform_flags{};
Common::Rectangle<int> crop_rect;
};
} // namespace Tegra