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