forked from MoonsideGames/MoonWorks
add IndirectDrawCommand struct
parent
1fb3e5adf0
commit
16d2b922ce
|
@ -364,4 +364,25 @@ namespace MoonWorks.Graphics
|
||||||
BlendState = blendState;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue