The background of the question is, does it make sense to introduce an
if case when drawing a mesh for whether there is instancing or not?
This is using DirectX 11 with SharpDX in the Stride game engine:
if (mesh.InstanceCount > 1) commandList.DrawInstanced(mesh.DrawCount, mesh.InstanceCount); else commandList.Draw(mesh.DrawCount);
Or is it equivalent to just calling
DrawInstanced() in any case?