aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Texture/Utils/BC7ModeInfo.cs
blob: 91236f1bc5032b03d8b854d80823cf92aee60684 (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
34
35
36
37
namespace Ryujinx.Graphics.Texture.Utils
{
    readonly struct BC7ModeInfo
    {
        public readonly int SubsetCount;
        public readonly int PartitionBitCount;
        public readonly int PBits;
        public readonly int RotationBitCount;
        public readonly int IndexModeBitCount;
        public readonly int ColorIndexBitCount;
        public readonly int AlphaIndexBitCount;
        public readonly int ColorDepth;
        public readonly int AlphaDepth;

        public BC7ModeInfo(
            int subsetCount,
            int partitionBitsCount,
            int pBits,
            int rotationBitCount,
            int indexModeBitCount,
            int colorIndexBitCount,
            int alphaIndexBitCount,
            int colorDepth,
            int alphaDepth)
        {
            SubsetCount = subsetCount;
            PartitionBitCount = partitionBitsCount;
            PBits = pBits;
            RotationBitCount = rotationBitCount;
            IndexModeBitCount = indexModeBitCount;
            ColorIndexBitCount = colorIndexBitCount;
            AlphaIndexBitCount = alphaIndexBitCount;
            ColorDepth = colorDepth;
            AlphaDepth = alphaDepth;
        }
    }
}