aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Vic/SurfaceOutputConfig.cs
blob: 0a232744c3eb1d76889f4c6ddef7e577b7363dfd (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
29
30
31
32
33
namespace Ryujinx.Graphics.Vic
{
    struct SurfaceOutputConfig
    {
        public SurfacePixelFormat PixelFormat;

        public int SurfaceWidth;
        public int SurfaceHeight;
        public int GobBlockHeight;

        public long SurfaceLumaAddress;
        public long SurfaceChromaUAddress;
        public long SurfaceChromaVAddress;

        public SurfaceOutputConfig(
            SurfacePixelFormat PixelFormat,
            int                SurfaceWidth,
            int                SurfaceHeight,
            int                GobBlockHeight,
            long               OutputSurfaceLumaAddress,
            long               OutputSurfaceChromaUAddress,
            long               OutputSurfaceChromaVAddress)
        {
            this.PixelFormat           = PixelFormat;
            this.SurfaceWidth          = SurfaceWidth;
            this.SurfaceHeight         = SurfaceHeight;
            this.GobBlockHeight        = GobBlockHeight;
            this.SurfaceLumaAddress    = OutputSurfaceLumaAddress;
            this.SurfaceChromaUAddress = OutputSurfaceChromaUAddress;
            this.SurfaceChromaVAddress = OutputSurfaceChromaVAddress;
        }
    }
}