diff --git a/src/Graphics/RefreshStructs.cs b/src/Graphics/RefreshStructs.cs index af7f9b33..6704a9c7 100644 --- a/src/Graphics/RefreshStructs.cs +++ b/src/Graphics/RefreshStructs.cs @@ -364,4 +364,25 @@ namespace MoonWorks.Graphics BlendState = blendState; } } + + [StructLayout(LayoutKind.Sequential)] + public struct IndirectDrawCommand + { + public uint VertexCount; + public uint InstanceCount; + public uint FirstVertex; + public uint FirstInstance; + + public IndirectDrawCommand( + uint vertexCount, + uint instanceCount, + uint firstVertex, + uint firstInstance + ) { + VertexCount = vertexCount; + InstanceCount = instanceCount; + FirstVertex = firstVertex; + FirstInstance = firstInstance; + } + } }