Module: wine Branch: master Commit: f282e10e00d664ccb55147485e3b088469e6b428 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f282e10e00d664ccb55147485e...
Author: Józef Kucia jkucia@codeweavers.com Date: Fri Nov 13 02:23:39 2015 +0100
d3d11: Implement d3d11_immediate_context_DrawIndexed().
Signed-off-by: Józef Kucia jkucia@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/d3d11/device.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index d357c2a..325c006 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -227,8 +227,15 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_VSSetShader(ID3D11DeviceCo static void STDMETHODCALLTYPE d3d11_immediate_context_DrawIndexed(ID3D11DeviceContext *iface, UINT index_count, UINT start_index_location, INT base_vertex_location) { - FIXME("iface %p, index_count %u, start_index_location %u, base_vertex_location %d stub!\n", + struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface); + + TRACE("iface %p, index_count %u, start_index_location %u, base_vertex_location %d.\n", iface, index_count, start_index_location, base_vertex_location); + + wined3d_mutex_lock(); + wined3d_device_set_base_vertex_index(device->wined3d_device, base_vertex_location); + wined3d_device_draw_indexed_primitive(device->wined3d_device, start_index_location, index_count); + wined3d_mutex_unlock(); }
static void STDMETHODCALLTYPE d3d11_immediate_context_Draw(ID3D11DeviceContext *iface,