Added Vertexcount to GeometryBinding and made Indexbuffer optional

This commit is contained in:
Simon Lübeß
2021-08-25 22:39:11 +02:00
parent a8bef51834
commit 099763e1e3
3 changed files with 19 additions and 4 deletions
@@ -14,6 +14,9 @@ namespace GlitchyEngine.Renderer
internal uint32 _indexCount;
internal uint32 _instanceCount;
internal PrimitiveTopology _primitiveTopology;
internal uint32 _vertexCount;
public bool IsIndexed => _indexBuffer != null;
public this(GraphicsContext context)
{
@@ -57,6 +60,14 @@ namespace GlitchyEngine.Renderer
set => _instanceCount = value;
}
public uint32 VertexCount
{
[Inline]
get => _vertexCount;
[Inline]
set => _vertexCount = value;
}
[Inline]
public PrimitiveTopology PrimitiveTopology => _primitiveTopology;