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