mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-26 12:03:01 +00:00
1f554c1093
* Renaming part 1 * Renaming part 2 * Renaming part 3 * Renaming part 4 * Renaming part 5 * Renaming part 6 * Renaming part 7 * Renaming part 8 * Renaming part 9 * Renaming part 10 * General cleanup * Thought I got all of these * Apply #595 * Additional renaming * Tweaks from feedback * Rename files
45 lines
No EOL
1.2 KiB
C#
45 lines
No EOL
1.2 KiB
C#
using Ryujinx.Graphics.Texture;
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public class ShaderDeclInfo
|
|
{
|
|
public string Name { get; private set; }
|
|
|
|
public int Index { get; private set; }
|
|
public bool IsCb { get; private set; }
|
|
public int Cbuf { get; private set; }
|
|
public int Size { get; private set; }
|
|
|
|
public GalTextureTarget TextureTarget { get; private set; }
|
|
|
|
public TextureInstructionSuffix TextureSuffix { get; private set; }
|
|
|
|
public ShaderDeclInfo(
|
|
string name,
|
|
int index,
|
|
bool isCb = false,
|
|
int cbuf = 0,
|
|
int size = 1,
|
|
GalTextureTarget textureTarget = GalTextureTarget.TwoD,
|
|
TextureInstructionSuffix textureSuffix = TextureInstructionSuffix.None)
|
|
{
|
|
Name = name;
|
|
Index = index;
|
|
IsCb = isCb;
|
|
Cbuf = cbuf;
|
|
Size = size;
|
|
|
|
TextureTarget = textureTarget;
|
|
TextureSuffix = textureSuffix;
|
|
}
|
|
|
|
internal void Enlarge(int newSize)
|
|
{
|
|
if (Size < newSize)
|
|
{
|
|
Size = newSize;
|
|
}
|
|
}
|
|
}
|
|
} |