Add startInst argument to drawInstanced

This commit is contained in:
Jack Andersen
2018-11-04 21:24:38 -10:00
parent 3b4d7abae6
commit b6d40fde97
5 changed files with 48 additions and 38 deletions

View File

@@ -1171,14 +1171,14 @@ struct D3D11CommandQueue : IGraphicsCommandQueue
m_deferredCtx->DrawIndexed(count, start, 0);
}
void drawInstances(size_t start, size_t count, size_t instCount)
void drawInstances(size_t start, size_t count, size_t instCount, size_t startInst)
{
m_deferredCtx->DrawInstanced(count, instCount, start, 0);
m_deferredCtx->DrawInstanced(count, instCount, start, startInst);
}
void drawInstancesIndexed(size_t start, size_t count, size_t instCount)
void drawInstancesIndexed(size_t start, size_t count, size_t instCount, size_t startInst)
{
m_deferredCtx->DrawIndexedInstanced(count, instCount, start, 0, 0);
m_deferredCtx->DrawIndexedInstanced(count, instCount, start, 0, startInst);
}
void _resolveBindTexture(ID3D11DeviceContext1* ctx, const D3D11TextureR* tex, const SWindowRect& rect,