mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 19:43:04 +00:00
23 lines
862 B
C#
23 lines
862 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|