Remove redundant `IPipeline.SetUniformMatrix` overload
This commit is contained in:
parent
1fd6e2e085
commit
8931f05703
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue