summaryrefslogtreecommitdiffstats
path: root/src/video_core/framebuffer_config.h
blob: 1e75d51ab875bbde12e7bea5fdac9eef467a4b3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include "common/common_types.h"
#include "common/math_util.h"
#include "core/hle/service/nvflinger/buffer_transform_flags.h"
#include "core/hle/service/nvflinger/pixel_format.h"

namespace Tegra {

/**
 * Struct describing framebuffer configuration
 */
struct FramebufferConfig {
    VAddr address{};
    u32 offset{};
    u32 width{};
    u32 height{};
    u32 stride{};
    android::PixelFormat pixel_format{};
    android::BufferTransformFlags transform_flags{};
    Common::Rectangle<int> crop_rect;
};

} // namespace Tegra