rubuild file struct 2

This commit is contained in:
Nitload
2024-05-28 20:32:45 +08:00
parent 0cac40255b
commit 5033a6d50b
45 changed files with 886 additions and 618 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ using System.Text;
namespace StgSharp.Graphics.GL
{
/// <summary>
/// A collection of handle to Element Buffer Object in OpenGL.
/// A collection of handle to Element Buffer Object in OpenglFunc.
/// Each <see langword="uint"/> value indexed from instance of this class this
/// is the only handle to one Element Buffer Object.
/// </summary>
@@ -73,7 +73,7 @@ namespace StgSharp.Graphics.GL
if (proc == IntPtr.Zero)
{
#if DEBUG
Console.WriteLine("Cannot load GL.");
Console.WriteLine("Cannot load glFunc.");
#endif
throw new Exception("Cannot load gl");
}
@@ -18,15 +18,15 @@ namespace StgSharp.Graphics.ShaderEdit
{
internal Dictionary<glSHandle, ShaderStructMember> uniformPair;
public ShaderStruct(params (glSHandle, ShaderStructMember)[] UniformPais)
public ShaderStruct(params (glSHandle, ShaderStructMember)[] uniformPairs)
{
uniformPair = new Dictionary<glSHandle, ShaderStructMember>();
if (UniformPais.Length == 0)
if (uniformPairs.Length == 0)
{
return;
}
foreach (var item in UniformPais)
foreach (var item in uniformPairs)
{
uniformPair.Add(item.Item1,item.Item2);
}