aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Vic/SurfaceOutputConfig.cs
blob: bdd55fc7c888ed8e8c1b6b289c7ca62ac37dbee3 (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)
        {
            PixelFormat           = pixelFormat;
            SurfaceWidth          = surfaceWidth;
            SurfaceHeight         = surfaceHeight;
            GobBlockHeight        = gobBlockHeight;
            SurfaceLumaAddress    = outputSurfaceLumaAddress;
            SurfaceChromaUAddress = outputSurfaceChromaUAddress;
            SurfaceChromaVAddress = outputSurfaceChromaVAddress;
        }
    }
}