mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
RenderAPI changes and removed Context parameter from Effect and Material
This commit is contained in:
@@ -85,7 +85,7 @@ namespace GlitchyEngine.Renderer
|
||||
SetBlendState(_nonblendingState);
|
||||
|
||||
_clearUintFx.Variables["ClearValue"].SetData(value);
|
||||
_clearUintFx.Bind(_context);
|
||||
_clearUintFx.Bind();
|
||||
|
||||
FullscreenQuad.Draw();
|
||||
|
||||
@@ -254,6 +254,16 @@ namespace GlitchyEngine.Renderer
|
||||
{
|
||||
_context.BindConstantBuffer(buffer, slot, stage);
|
||||
}
|
||||
|
||||
public override void BindVertexShader(VertexShader vertexShader)
|
||||
{
|
||||
_context.BindVertexShader(vertexShader);
|
||||
}
|
||||
|
||||
public override void BindPixelShader(PixelShader pixelShader)
|
||||
{
|
||||
_context.BindPixelShader(pixelShader);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user