Remove redundant `IPipeline.SetUniformMatrix` overload

This commit is contained in:
YoshiRulz 2025-04-24 01:16:49 +10:00
parent 1fd6e2e085
commit 8931f05703
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
4 changed files with 1 additions and 12 deletions

View File

@ -392,9 +392,6 @@ namespace BizHawk.Bizware.Graphics
}
}
public void SetUniformMatrix(string name, Matrix4x4 mat, bool transpose)
=> SetUniformMatrix(name, ref mat, transpose);
public unsafe void SetUniformMatrix(string name, ref Matrix4x4 mat, bool transpose)
{
var m = transpose ? Matrix4x4.Transpose(mat) : mat;

View File

@ -61,7 +61,7 @@ namespace BizHawk.Bizware.Graphics
internal void SetProjection(int width, int height)
{
var projection = _igl.CreateGuiViewMatrix(width, height) * _igl.CreateGuiProjectionMatrix(width, height);
Pipeline.SetUniformMatrix("um44Projection", projection);
Pipeline.SetUniformMatrix("um44Projection", ref projection);
}
internal void SetTexture(ITexture2D texture2D)

View File

@ -23,11 +23,6 @@ namespace BizHawk.Bizware.Graphics
/// </summary>
void SetUniformSampler(string name, ITexture2D tex);
/// <summary>
/// Sets a uniform value
/// </summary>
void SetUniformMatrix(string name, Matrix4x4 mat, bool transpose = false);
/// <summary>
/// Sets a uniform value
/// </summary>

View File

@ -263,9 +263,6 @@ namespace BizHawk.Bizware.Graphics
}
}
public void SetUniformMatrix(string name, Matrix4x4 mat, bool transpose)
=> SetUniformMatrix(name, ref mat, transpose);
public unsafe void SetUniformMatrix(string name, ref Matrix4x4 mat, bool transpose)
{
if (_uniforms.TryGetValue(name, out var uid))