summaryrefslogblamecommitdiffstats
path: root/src/video_core/framebuffer_config.h
blob: 856f4bd529e253ab954cb795e4bd1f197799f14f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               


            

                                

                                                               
 
                 
 



                                              
                    



                 

                                                             



                                     
// 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"
#include "core/hle/service/nvnflinger/buffer_transform_flags.h"
#include "core/hle/service/nvnflinger/pixel_format.h"

namespace Tegra {

/**
 * Struct describing framebuffer configuration
 */
struct FramebufferConfig {
    DAddr 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