aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/ResourceReservationCounts.cs
blob: c0bae8eab755966ec067228d3091951b3c3bade5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Ryujinx.Graphics.Shader.Translation;

namespace Ryujinx.Graphics.Shader
{
    public readonly struct ResourceReservationCounts
    {
        public readonly int ReservedConstantBuffers { get; }
        public readonly int ReservedStorageBuffers { get; }
        public readonly int ReservedTextures { get; }
        public readonly int ReservedImages { get; }

        public ResourceReservationCounts(bool isTransformFeedbackEmulated, bool vertexAsCompute)
        {
            ResourceReservations reservations = new(isTransformFeedbackEmulated, vertexAsCompute);

            ReservedConstantBuffers = reservations.ReservedConstantBuffers;
            ReservedStorageBuffers = reservations.ReservedStorageBuffers;
            ReservedTextures = reservations.ReservedTextures;
            ReservedImages = reservations.ReservedImages;
        }
    }
}