Compare commits

...

1 Commits

Author SHA1 Message Date
Caleb Cornett 16d2b922ce add IndirectDrawCommand struct 2023-01-04 12:08:56 -05:00
1 changed files with 21 additions and 0 deletions

View File

@ -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;
}
}
}