mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Added Vertexcount to GeometryBinding and made Indexbuffer optional
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user