mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
DX11: Automatically validate input layouts against vertex shaders
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user