Renaming part 4

This commit is contained in:
Alex Barney 2019-03-03 11:25:45 -06:00
parent 6adbbc376d
commit faa7e1e4c3
40 changed files with 248 additions and 248 deletions

View file

@ -5,15 +5,15 @@ namespace Ryujinx.Graphics.Gal
{
static class EmbeddedResource
{
public static string GetString(string Name)
public static string GetString(string name)
{
Assembly Asm = typeof(EmbeddedResource).Assembly;
Assembly asm = typeof(EmbeddedResource).Assembly;
using (Stream ResStream = Asm.GetManifestResourceStream(Name))
using (Stream resStream = asm.GetManifestResourceStream(name))
{
StreamReader Reader = new StreamReader(ResStream);
StreamReader reader = new StreamReader(resStream);
return Reader.ReadToEnd();
return reader.ReadToEnd();
}
}
}

View file

@ -8,15 +8,15 @@ namespace Ryujinx.Graphics.Gal
public float Alpha { get; private set; }
public GalColorF(
float Red,
float Green,
float Blue,
float Alpha)
float red,
float green,
float blue,
float alpha)
{
this.Red = Red;
this.Green = Green;
this.Blue = Blue;
this.Alpha = Alpha;
Red = red;
Green = green;
Blue = blue;
Alpha = alpha;
}
}
}

View file

@ -2,7 +2,7 @@
{
public enum GalFrontFace
{
CW = 0x900,
CCW = 0x901
Cw = 0x900,
Ccw = 0x901
}
}

View file

@ -25,63 +25,63 @@ namespace Ryujinx.Graphics.Gal
public GalTextureTarget TextureTarget;
public GalImage(
int Width,
int Height,
int Depth,
int LayerCount,
int TileWidth,
int GobBlockHeight,
int GobBlockDepth,
GalMemoryLayout Layout,
GalImageFormat Format,
GalTextureTarget TextureTarget,
int MaxMipmapLevel = 1,
GalTextureSource XSource = GalTextureSource.Red,
GalTextureSource YSource = GalTextureSource.Green,
GalTextureSource ZSource = GalTextureSource.Blue,
GalTextureSource WSource = GalTextureSource.Alpha)
int width,
int height,
int depth,
int layerCount,
int tileWidth,
int gobBlockHeight,
int gobBlockDepth,
GalMemoryLayout layout,
GalImageFormat format,
GalTextureTarget textureTarget,
int maxMipmapLevel = 1,
GalTextureSource xSource = GalTextureSource.Red,
GalTextureSource ySource = GalTextureSource.Green,
GalTextureSource zSource = GalTextureSource.Blue,
GalTextureSource wSource = GalTextureSource.Alpha)
{
this.Width = Width;
this.Height = Height;
this.LayerCount = LayerCount;
this.Depth = Depth;
this.TileWidth = TileWidth;
this.GobBlockHeight = GobBlockHeight;
this.GobBlockDepth = GobBlockDepth;
this.Layout = Layout;
this.Format = Format;
this.MaxMipmapLevel = MaxMipmapLevel;
this.XSource = XSource;
this.YSource = YSource;
this.ZSource = ZSource;
this.WSource = WSource;
this.TextureTarget = TextureTarget;
Width = width;
Height = height;
LayerCount = layerCount;
Depth = depth;
TileWidth = tileWidth;
GobBlockHeight = gobBlockHeight;
GobBlockDepth = gobBlockDepth;
Layout = layout;
Format = format;
MaxMipmapLevel = maxMipmapLevel;
XSource = xSource;
YSource = ySource;
ZSource = zSource;
WSource = wSource;
TextureTarget = textureTarget;
Pitch = ImageUtils.GetPitch(Format, Width);
Pitch = ImageUtils.GetPitch(format, width);
}
public bool SizeMatches(GalImage Image, bool IgnoreLayer = false)
public bool SizeMatches(GalImage image, bool ignoreLayer = false)
{
if (ImageUtils.GetBytesPerPixel(Format) !=
ImageUtils.GetBytesPerPixel(Image.Format))
ImageUtils.GetBytesPerPixel(image.Format))
{
return false;
}
if (ImageUtils.GetAlignedWidth(this) !=
ImageUtils.GetAlignedWidth(Image))
ImageUtils.GetAlignedWidth(image))
{
return false;
}
bool Result = Height == Image.Height && Depth == Image.Depth;
bool result = Height == image.Height && Depth == image.Depth;
if (!IgnoreLayer)
if (!ignoreLayer)
{
Result = Result && LayerCount == Image.LayerCount;
result = result && LayerCount == image.LayerCount;
}
return Result;
return result;
}
}
}

View file

@ -111,9 +111,9 @@
{
ConstBufferKeys = new long[Stages][];
for (int Stage = 0; Stage < Stages; Stage++)
for (int stage = 0; stage < Stages; stage++)
{
ConstBufferKeys[Stage] = new long[ConstBuffersPerStage];
ConstBufferKeys[stage] = new long[ConstBuffersPerStage];
}
Blends = new BlendState[RenderTargetsCount];

View file

@ -16,26 +16,26 @@ namespace Ryujinx.Graphics.Gal
public DepthCompareFunc DepthCompareFunc { get; private set; }
public GalTextureSampler(
GalTextureWrap AddressU,
GalTextureWrap AddressV,
GalTextureWrap AddressP,
GalTextureFilter MinFilter,
GalTextureFilter MagFilter,
GalTextureMipFilter MipFilter,
GalColorF BorderColor,
bool DepthCompare,
DepthCompareFunc DepthCompareFunc)
GalTextureWrap addressU,
GalTextureWrap addressV,
GalTextureWrap addressP,
GalTextureFilter minFilter,
GalTextureFilter magFilter,
GalTextureMipFilter mipFilter,
GalColorF borderColor,
bool depthCompare,
DepthCompareFunc depthCompareFunc)
{
this.AddressU = AddressU;
this.AddressV = AddressV;
this.AddressP = AddressP;
this.MinFilter = MinFilter;
this.MagFilter = MagFilter;
this.MipFilter = MipFilter;
this.BorderColor = BorderColor;
AddressU = addressU;
AddressV = addressV;
AddressP = addressP;
MinFilter = minFilter;
MagFilter = magFilter;
MipFilter = mipFilter;
BorderColor = borderColor;
this.DepthCompare = DepthCompare;
this.DepthCompareFunc = DepthCompareFunc;
DepthCompare = depthCompare;
DepthCompareFunc = depthCompareFunc;
}
}
}

View file

@ -6,8 +6,8 @@
Unorm = 2,
Sint = 3,
Uint = 4,
Snorm_Force_Fp16 = 5,
Unorm_Force_Fp16 = 6,
SnormForceFp16 = 5,
UnormForceFp16 = 6,
Float = 7
}
}

View file

@ -13,21 +13,21 @@ namespace Ryujinx.Graphics.Gal
public bool IsBgra { get; private set; }
public GalVertexAttrib(
int Index,
bool IsConst,
int Offset,
byte[] Data,
GalVertexAttribSize Size,
GalVertexAttribType Type,
bool IsBgra)
int index,
bool isConst,
int offset,
byte[] data,
GalVertexAttribSize size,
GalVertexAttribType type,
bool isBgra)
{
this.Index = Index;
this.IsConst = IsConst;
this.Data = Data;
this.Offset = Offset;
this.Size = Size;
this.Type = Type;
this.IsBgra = IsBgra;
Index = index;
IsConst = isConst;
Data = data;
Offset = offset;
Size = size;
Type = type;
IsBgra = isBgra;
}
}
}

View file

@ -7,11 +7,11 @@ namespace Ryujinx.Graphics.Gal
void LockCache();
void UnlockCache();
void Create(long Key, long Size);
void Create(long key, long size);
bool IsCached(long Key, long Size);
bool IsCached(long key, long size);
void SetData(long Key, long Size, IntPtr HostAddress);
void SetData(long Key, byte[] Data);
void SetData(long key, long size, IntPtr hostAddress);
void SetData(long key, byte[] data);
}
}

View file

@ -2,6 +2,6 @@ namespace Ryujinx.Graphics.Gal
{
public unsafe interface IGalMemory
{
int ReadInt32(long Position);
int ReadInt32(long position);
}
}

View file

@ -2,9 +2,9 @@
{
public interface IGalPipeline
{
void Bind(GalPipelineState State);
void Bind(GalPipelineState state);
void ResetDepthMask();
void ResetColorMask(int Index);
void ResetColorMask(int index);
}
}

View file

@ -8,29 +8,29 @@ namespace Ryujinx.Graphics.Gal
void UnlockCaches();
void ClearBuffers(
GalClearBufferFlags Flags,
int Attachment,
float Red,
float Green,
float Blue,
float Alpha,
float Depth,
int Stencil);
GalClearBufferFlags flags,
int attachment,
float red,
float green,
float blue,
float alpha,
float depth,
int stencil);
bool IsVboCached(long Key, long DataSize);
bool IsVboCached(long key, long dataSize);
bool IsIboCached(long Key, long DataSize);
bool IsIboCached(long key, long dataSize);
void CreateVbo(long Key, int DataSize, IntPtr HostAddress);
void CreateVbo(long Key, byte[] Data);
void CreateVbo(long key, int dataSize, IntPtr hostAddress);
void CreateVbo(long key, byte[] data);
void CreateIbo(long Key, int DataSize, IntPtr HostAddress);
void CreateIbo(long Key, int DataSize, byte[] Buffer);
void CreateIbo(long key, int dataSize, IntPtr hostAddress);
void CreateIbo(long key, int dataSize, byte[] buffer);
void SetIndexArray(int Size, GalIndexFormat Format);
void SetIndexArray(int size, GalIndexFormat format);
void DrawArrays(int First, int Count, GalPrimitiveType PrimType);
void DrawArrays(int first, int count, GalPrimitiveType primType);
void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
void DrawElements(long iboKey, int first, int vertexBase, GalPrimitiveType primType);
}
}

View file

@ -4,42 +4,42 @@ namespace Ryujinx.Graphics.Gal
{
void Bind();
void BindColor(long Key, int Attachment);
void BindColor(long key, int attachment);
void UnbindColor(int Attachment);
void UnbindColor(int attachment);
void BindZeta(long Key);
void BindZeta(long key);
void UnbindZeta();
void Present(long Key);
void Present(long key);
void SetMap(int[] Map);
void SetMap(int[] map);
void SetTransform(bool FlipX, bool FlipY, int Top, int Left, int Right, int Bottom);
void SetTransform(bool flipX, bool flipY, int top, int left, int right, int bottom);
void SetWindowSize(int Width, int Height);
void SetWindowSize(int width, int height);
void SetViewport(int Attachment, int X, int Y, int Width, int Height);
void SetViewport(int attachment, int x, int y, int width, int height);
void Render();
void Copy(
GalImage SrcImage,
GalImage DstImage,
long SrcKey,
long DstKey,
int SrcLayer,
int DstLayer,
int SrcX0,
int SrcY0,
int SrcX1,
int SrcY1,
int DstX0,
int DstY0,
int DstX1,
int DstY1);
GalImage srcImage,
GalImage dstImage,
long srcKey,
long dstKey,
int srcLayer,
int dstLayer,
int srcX0,
int srcY0,
int srcX1,
int srcY1,
int dstX0,
int dstY0,
int dstX1,
int dstY1);
void Reinterpret(long Key, GalImage NewImage);
void Reinterpret(long key, GalImage newImage);
}
}

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Graphics.Gal
{
public interface IGalRenderer
{
void QueueAction(Action ActionMthd);
void QueueAction(Action actionMthd);
void RunActions();

View file

@ -4,16 +4,16 @@ namespace Ryujinx.Graphics.Gal
{
public interface IGalShader
{
void Create(IGalMemory Memory, long Key, GalShaderType Type);
void Create(IGalMemory memory, long key, GalShaderType type);
void Create(IGalMemory Memory, long VpAPos, long Key, GalShaderType Type);
void Create(IGalMemory memory, long vpAPos, long key, GalShaderType type);
IEnumerable<ShaderDeclInfo> GetConstBufferUsage(long Key);
IEnumerable<ShaderDeclInfo> GetTextureUsage(long Key);
IEnumerable<ShaderDeclInfo> GetConstBufferUsage(long key);
IEnumerable<ShaderDeclInfo> GetTextureUsage(long key);
void Bind(long Key);
void Bind(long key);
void Unbind(GalShaderType Type);
void Unbind(GalShaderType type);
void BindProgram();
}

View file

@ -5,14 +5,14 @@ namespace Ryujinx.Graphics.Gal
void LockCache();
void UnlockCache();
void Create(long Key, int Size, GalImage Image);
void Create(long key, int size, GalImage image);
void Create(long Key, byte[] Data, GalImage Image);
void Create(long key, byte[] data, GalImage image);
bool TryGetImage(long Key, out GalImage Image);
bool TryGetImage(long key, out GalImage image);
void Bind(long Key, int Index, GalImage Image);
void Bind(long key, int index, GalImage image);
void SetSampler(GalImage Image, GalTextureSampler Sampler);
void SetSampler(GalImage image, GalTextureSampler sampler);
}
}

View file

@ -9,8 +9,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{
switch (frontFace)
{
case GalFrontFace.CW: return FrontFaceDirection.Cw;
case GalFrontFace.CCW: return FrontFaceDirection.Ccw;
case GalFrontFace.Cw: return FrontFaceDirection.Cw;
case GalFrontFace.Ccw: return FrontFaceDirection.Ccw;
}
throw new ArgumentException(nameof(frontFace) + " \"" + frontFace + "\" is not valid!");

View file

@ -98,7 +98,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
//These values match OpenGL's defaults
_old = new GalPipelineState
{
FrontFace = GalFrontFace.CCW,
FrontFace = GalFrontFace.Ccw,
CullFaceEnabled = false,
CullFace = GalCullFace.Back,

View file

@ -85,7 +85,7 @@ namespace Ryujinx.Graphics.Gal.Shader
private GlslDecl(GalShaderType shaderType)
{
this.ShaderType = shaderType;
ShaderType = shaderType;
m_CbTextures = new Dictionary<ShaderIrOp, ShaderDeclInfo>();

View file

@ -114,8 +114,8 @@ namespace Ryujinx.Graphics.Gal.Shader
{ ShaderIrInst.Xor, GetXorExpr }
};
this.MaxUboSize = maxUboSize / 16;
this._isNvidiaDriver = isNvidiaDriver;
MaxUboSize = maxUboSize / 16;
_isNvidiaDriver = isNvidiaDriver;
}
public GlslProgram Decompile(

View file

@ -14,9 +14,9 @@ namespace Ryujinx.Graphics.Gal.Shader
IEnumerable<ShaderDeclInfo> textures,
IEnumerable<ShaderDeclInfo> uniforms)
{
this.Code = code;
this.Textures = textures;
this.Uniforms = uniforms;
Code = code;
Textures = textures;
Uniforms = uniforms;
}
}
}

View file

@ -7,8 +7,8 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrAsg(ShaderIrNode dst, ShaderIrNode src)
{
this.Dst = dst;
this.Src = src;
Dst = dst;
Src = src;
}
}
}

View file

@ -16,7 +16,7 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrBlock(int position)
{
this.Position = position;
Position = position;
Sources = new List<ShaderIrBlock>();

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrCmnt(string comment)
{
this.Comment = comment;
Comment = comment;
}
}
}

View file

@ -9,9 +9,9 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrCond(ShaderIrNode pred, ShaderIrNode child, bool not)
{
this.Pred = pred;
this.Child = child;
this.Not = not;
Pred = pred;
Child = child;
Not = not;
}
}
}

View file

@ -6,7 +6,7 @@
public ShaderIrMetaIpa(ShaderIpaMode mode)
{
this.Mode = mode;
Mode = mode;
}
}
}

View file

@ -15,10 +15,10 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrMetaTex(int elem, GalTextureTarget textureTarget, TextureInstructionSuffix textureInstructionSuffix, params ShaderIrNode[] coordinates)
{
this.Elem = elem;
this.TextureTarget = textureTarget;
this.TextureInstructionSuffix = textureInstructionSuffix;
this.Coordinates = coordinates;
Elem = elem;
TextureTarget = textureTarget;
TextureInstructionSuffix = textureInstructionSuffix;
Coordinates = coordinates;
}
}
}

View file

@ -8,8 +8,8 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrMetaTexq(ShaderTexqInfo info, int elem)
{
this.Info = info;
this.Elem = elem;
Info = info;
Elem = elem;
}
}
}

View file

@ -15,11 +15,11 @@ namespace Ryujinx.Graphics.Gal.Shader
ShaderIrNode operandC = null,
ShaderIrMeta metaData = null)
{
this.Inst = inst;
this.OperandA = operandA;
this.OperandB = operandB;
this.OperandC = operandC;
this.MetaData = metaData;
Inst = inst;
OperandA = operandA;
OperandB = operandB;
OperandC = operandC;
MetaData = metaData;
}
}
}

View file

@ -8,8 +8,8 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrOperAbuf(int offs, ShaderIrNode vertex)
{
this.Offs = offs;
this.Vertex = vertex;
Offs = offs;
Vertex = vertex;
}
}
}

View file

@ -9,9 +9,9 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrOperCbuf(int index, int pos, ShaderIrNode offs = null)
{
this.Index = index;
this.Pos = pos;
this.Offs = offs;
Index = index;
Pos = pos;
Offs = offs;
}
}
}

View file

@ -15,15 +15,15 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrOperGpr(int index)
{
this.Index = index;
Index = index;
RegisterSize = ShaderRegisterSize.Single;
}
public ShaderIrOperGpr(int index, int halfPart)
{
this.Index = index;
this.HalfPart = halfPart;
Index = index;
HalfPart = halfPart;
RegisterSize = ShaderRegisterSize.Half;
}

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrOperImm(int value)
{
this.Value = value;
Value = value;
}
}
}

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrOperImmf(float value)
{
this.Value = value;
Value = value;
}
}
}

View file

@ -11,7 +11,7 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderIrOperPred(int index)
{
this.Index = index;
Index = index;
}
}
}

View file

@ -14,8 +14,8 @@ namespace Ryujinx.Graphics.Gal.Shader
public ShaderDecodeEntry(ShaderDecodeFunc func, int xBits)
{
this.Func = func;
this.XBits = xBits;
Func = func;
XBits = xBits;
}
}

View file

@ -16,29 +16,29 @@ namespace Ryujinx.Graphics.Gal
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)
string name,
int index,
bool isCb = false,
int cbuf = 0,
int size = 1,
GalTextureTarget textureTarget = GalTextureTarget.TwoD,
TextureInstructionSuffix textureSuffix = TextureInstructionSuffix.None)
{
this.Name = Name;
this.Index = Index;
this.IsCb = IsCb;
this.Cbuf = Cbuf;
this.Size = Size;
Name = name;
Index = index;
IsCb = isCb;
Cbuf = cbuf;
Size = size;
this.TextureTarget = TextureTarget;
this.TextureSuffix = TextureSuffix;
TextureTarget = textureTarget;
TextureSuffix = textureSuffix;
}
internal void Enlarge(int NewSize)
internal void Enlarge(int newSize)
{
if (Size < NewSize)
if (Size < newSize)
{
Size = NewSize;
Size = newSize;
}
}
}

View file

@ -5,67 +5,67 @@ namespace Ryujinx.Graphics.Gal
{
static class ShaderDumper
{
private static string RuntimeDir;
private static string _runtimeDir;
public static int DumpIndex { get; private set; } = 1;
public static void Dump(IGalMemory Memory, long Position, GalShaderType Type, string ExtSuffix = "")
public static void Dump(IGalMemory memory, long position, GalShaderType type, string extSuffix = "")
{
if (!IsDumpEnabled())
{
return;
}
string FileName = "Shader" + DumpIndex.ToString("d4") + "." + ShaderExtension(Type) + ExtSuffix + ".bin";
string fileName = "Shader" + DumpIndex.ToString("d4") + "." + ShaderExtension(type) + extSuffix + ".bin";
string FullPath = Path.Combine(FullDir(), FileName);
string CodePath = Path.Combine(CodeDir(), FileName);
string fullPath = Path.Combine(FullDir(), fileName);
string codePath = Path.Combine(CodeDir(), fileName);
DumpIndex++;
using (FileStream FullFile = File.Create(FullPath))
using (FileStream CodeFile = File.Create(CodePath))
using (FileStream fullFile = File.Create(fullPath))
using (FileStream codeFile = File.Create(codePath))
{
BinaryWriter FullWriter = new BinaryWriter(FullFile);
BinaryWriter CodeWriter = new BinaryWriter(CodeFile);
BinaryWriter fullWriter = new BinaryWriter(fullFile);
BinaryWriter codeWriter = new BinaryWriter(codeFile);
for (long i = 0; i < 0x50; i += 4)
{
FullWriter.Write(Memory.ReadInt32(Position + i));
fullWriter.Write(memory.ReadInt32(position + i));
}
long Offset = 0;
long offset = 0;
ulong Instruction = 0;
ulong instruction = 0;
//Dump until a NOP instruction is found
while ((Instruction >> 48 & 0xfff8) != 0x50b0)
while ((instruction >> 48 & 0xfff8) != 0x50b0)
{
uint Word0 = (uint)Memory.ReadInt32(Position + 0x50 + Offset + 0);
uint Word1 = (uint)Memory.ReadInt32(Position + 0x50 + Offset + 4);
uint word0 = (uint)memory.ReadInt32(position + 0x50 + offset + 0);
uint word1 = (uint)memory.ReadInt32(position + 0x50 + offset + 4);
Instruction = Word0 | (ulong)Word1 << 32;
instruction = word0 | (ulong)word1 << 32;
//Zero instructions (other kind of NOP) stop immediatly,
//this is to avoid two rows of zeroes
if (Instruction == 0)
if (instruction == 0)
{
break;
}
FullWriter.Write(Instruction);
CodeWriter.Write(Instruction);
fullWriter.Write(instruction);
codeWriter.Write(instruction);
Offset += 8;
offset += 8;
}
//Align to meet nvdisasm requeriments
while (Offset % 0x20 != 0)
while (offset % 0x20 != 0)
{
FullWriter.Write(0);
CodeWriter.Write(0);
fullWriter.Write(0);
codeWriter.Write(0);
Offset += 4;
offset += 4;
}
}
}
@ -87,37 +87,37 @@ namespace Ryujinx.Graphics.Gal
private static string DumpDir()
{
if (string.IsNullOrEmpty(RuntimeDir))
if (string.IsNullOrEmpty(_runtimeDir))
{
int Index = 1;
int index = 1;
do
{
RuntimeDir = Path.Combine(GraphicsConfig.ShadersDumpPath, "Dumps" + Index.ToString("d2"));
_runtimeDir = Path.Combine(GraphicsConfig.ShadersDumpPath, "Dumps" + index.ToString("d2"));
Index++;
index++;
}
while (Directory.Exists(RuntimeDir));
while (Directory.Exists(_runtimeDir));
Directory.CreateDirectory(RuntimeDir);
Directory.CreateDirectory(_runtimeDir);
}
return RuntimeDir;
return _runtimeDir;
}
private static string CreateAndReturn(string Dir)
private static string CreateAndReturn(string dir)
{
if (!Directory.Exists(Dir))
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(Dir);
Directory.CreateDirectory(dir);
}
return Dir;
return dir;
}
private static string ShaderExtension(GalShaderType Type)
private static string ShaderExtension(GalShaderType type)
{
switch (Type)
switch (type)
{
case GalShaderType.Vertex: return "vert";
case GalShaderType.TessControl: return "tesc";
@ -125,7 +125,7 @@ namespace Ryujinx.Graphics.Gal
case GalShaderType.Geometry: return "geom";
case GalShaderType.Fragment: return "frag";
default: throw new ArgumentException(nameof(Type));
default: throw new ArgumentException(nameof(type));
}
}
}

View file

@ -6,6 +6,6 @@ namespace Ryujinx.Graphics.Gal
{
public ShaderException() : base() { }
public ShaderException(string Message) : base(Message) { }
public ShaderException(string message) : base(message) { }
}
}

View file

@ -67,7 +67,7 @@ namespace Ryujinx.Graphics.Graphics3d
WriteRegister(NvGpuEngine3dReg.FrameBufferSrgb, 1);
WriteRegister(NvGpuEngine3dReg.FrontFace, (int)GalFrontFace.CW);
WriteRegister(NvGpuEngine3dReg.FrontFace, (int)GalFrontFace.Cw);
for (int Index = 0; Index < GalPipelineState.RenderTargetsCount; Index++)
{
@ -364,8 +364,8 @@ namespace Ryujinx.Graphics.Graphics3d
{
switch (FrontFace)
{
case GalFrontFace.CW: FrontFace = GalFrontFace.CCW; break;
case GalFrontFace.CCW: FrontFace = GalFrontFace.CW; break;
case GalFrontFace.Cw: FrontFace = GalFrontFace.Ccw; break;
case GalFrontFace.Ccw: FrontFace = GalFrontFace.Cw; break;
}
}