Added Effect constructor

This commit is contained in:
Simon Lübeß
2021-02-09 17:25:24 +01:00
parent 1ce94b6a6c
commit 08026eaf02
4 changed files with 14 additions and 23 deletions
+11
View File
@@ -43,6 +43,17 @@ namespace GlitchyEngine.Renderer
{
}
public this(GraphicsContext context, String filename, String vsEntry, String psEntry)
{
let vs = Shader.FromFile!<VertexShader>(context, filename, vsEntry);
VertexShader = vs;
vs.ReleaseRef();
let ps = Shader.FromFile!<PixelShader>(context, filename, psEntry);
PixelShader = ps;
ps.ReleaseRef();
}
public this(String vsPath, String vsEntry, String psPath, String psEntry)
{