(Breaking) Made VertexLayout initialization sexy

This commit is contained in:
Simon Lübeß
2021-01-02 16:32:08 +01:00
parent 3c58e20787
commit 523da5536b
3 changed files with 9 additions and 9 deletions
@@ -11,11 +11,11 @@ namespace GlitchyEngine.Renderer
{
internal ID3D11InputLayout* nativeLayout ~ _?.Release();
public ID3DBlob* nativeShaderCode;
public ID3DBlob* nativeShaderCode ~ _?.Release();
public this(GraphicsContext context, VertexElement[] ownElements, ID3DBlob* nativeShaderCode)
public this(GraphicsContext context, VertexElement[] ownElements, VertexShader vertexShader)
{
this.nativeShaderCode = nativeShaderCode;
nativeShaderCode = vertexShader.nativeCode..AddRef();
_context = context;
_elements = ownElements;