DX11: Automatically validate input layouts against vertex shaders

This commit is contained in:
Simon Lübeß
2022-05-26 11:27:02 +02:00
parent 28f1fad464
commit 164d420a25
11 changed files with 101 additions and 49 deletions
+6 -3
View File
@@ -3,7 +3,6 @@ using GlitchyEngine.Core;
namespace GlitchyEngine.Renderer
{
/**
* Type of data contained in an input slot.
*/
@@ -86,6 +85,12 @@ namespace GlitchyEngine.Renderer
public VertexElement[] Elements => _elements;
public this(VertexElement[] elements, bool ownsElements)
{
_elements = elements;
_ownsElements = ownsElements;
}
public ~this()
{
if(_ownsElements)
@@ -99,8 +104,6 @@ namespace GlitchyEngine.Renderer
delete _elements;
}
}
protected extern void CreateNativeLayout();
}
public interface IVertexData