2018-04-08 15:17:35 -04:00
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
|
|
|
public class ShaderDeclInfo
|
|
|
|
{
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
2018-08-13 17:22:09 -04:00
|
|
|
public int Index { get; private set; }
|
|
|
|
public bool IsCb { get; private set; }
|
|
|
|
public int Cbuf { get; private set; }
|
|
|
|
public int Size { get; private set; }
|
2018-04-08 15:17:35 -04:00
|
|
|
|
2018-08-13 17:22:09 -04:00
|
|
|
public ShaderDeclInfo(
|
|
|
|
string Name,
|
|
|
|
int Index,
|
|
|
|
bool IsCb = false,
|
|
|
|
int Cbuf = 0,
|
|
|
|
int Size = 1)
|
2018-04-08 15:17:35 -04:00
|
|
|
{
|
|
|
|
this.Name = Name;
|
|
|
|
this.Index = Index;
|
2018-08-13 17:22:09 -04:00
|
|
|
this.IsCb = IsCb;
|
2018-04-08 15:17:35 -04:00
|
|
|
this.Cbuf = Cbuf;
|
|
|
|
this.Size = Size;
|
|
|
|
}
|
|
|
|
|
|
|
|
internal void Enlarge(int NewSize)
|
|
|
|
{
|
|
|
|
if (Size < NewSize)
|
|
|
|
{
|
|
|
|
Size = NewSize;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|