mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
(Breaking) Made VertexLayout initialization sexy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user