mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added basic support for instanced rendering
This commit is contained in:
@@ -12,6 +12,7 @@ namespace GlitchyEngine.Renderer
|
||||
internal VertexLayout _vertexLayout;
|
||||
internal uint32 _indexByteOffset;
|
||||
internal uint32 _indexCount;
|
||||
internal uint32 _instanceCount;
|
||||
internal PrimitiveTopology _primitiveTopology;
|
||||
|
||||
public this(GraphicsContext context)
|
||||
@@ -50,6 +51,14 @@ namespace GlitchyEngine.Renderer
|
||||
[Inline]
|
||||
public uint32 IndexCount => _indexCount;
|
||||
|
||||
public uint32 InstanceCount
|
||||
{
|
||||
[Inline]
|
||||
get => _instanceCount;
|
||||
[Inline]
|
||||
set => _instanceCount = value;
|
||||
}
|
||||
|
||||
[Inline]
|
||||
public PrimitiveTopology PrimitiveTopology => _primitiveTopology;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user