RenderAPI changes and removed Context parameter from Effect and Material

This commit is contained in:
Simon Lübeß
2022-11-27 17:18:16 +01:00
parent d47ac23e1b
commit dffd43a36f
14 changed files with 89 additions and 52 deletions
+3 -2
View File
@@ -65,7 +65,7 @@ namespace GlitchyEngine.Renderer
/**
* Binds the materials Shaders and Parameters to the given context.
*/
public void Bind(GraphicsContext context)
public void Bind()
{
Debug.Profiler.ProfileRendererFunction!();
@@ -79,7 +79,8 @@ namespace GlitchyEngine.Renderer
variable.Variable.SetRawData(RawPointer!<uint8>(variable.Offset));
}
_effect.Bind(context);
_effect.ApplyChanges();
_effect.Bind();
}
/** @brief Sets a texture of the material.