2019-02-28 01:12:24 +00:00
|
|
|
using Ryujinx.Graphics.Texture;
|
|
|
|
|
2018-04-08 20:17:35 +01:00
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
|
|
|
public class ShaderDeclInfo
|
|
|
|
{
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
2018-08-13 22:22:09 +01: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 20:17:35 +01:00
|
|
|
|
2019-02-28 01:12:24 +00:00
|
|
|
public GalTextureTarget TextureTarget { get; private set; }
|
|
|
|
|
|
|
|
public TextureInstructionSuffix TextureSuffix { get; private set; }
|
|
|
|
|
2018-08-13 22:22:09 +01:00
|
|
|
public ShaderDeclInfo(
|
|
|
|
string Name,
|
|
|
|
int Index,
|
|
|
|
bool IsCb = false,
|
|
|
|
int Cbuf = 0,
|
2019-02-28 01:12:24 +00:00
|
|
|
int Size = 1,
|
|
|
|
GalTextureTarget TextureTarget = GalTextureTarget.TwoD,
|
|
|
|
TextureInstructionSuffix TextureSuffix = TextureInstructionSuffix.None)
|
2018-04-08 20:17:35 +01:00
|
|
|
{
|
2019-02-28 01:12:24 +00:00
|
|
|
this.Name = Name;
|
|
|
|
this.Index = Index;
|
|
|
|
this.IsCb = IsCb;
|
|
|
|
this.Cbuf = Cbuf;
|
|
|
|
this.Size = Size;
|
|
|
|
|
|
|
|
this.TextureTarget = TextureTarget;
|
|
|
|
this.TextureSuffix = TextureSuffix;
|
2018-04-08 20:17:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
internal void Enlarge(int NewSize)
|
|
|
|
{
|
|
|
|
if (Size < NewSize)
|
|
|
|
{
|
|
|
|
Size = NewSize;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|