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>
This commit is contained in:
Józef Kucia 2015-11-13 02:23:39 +01:00 committed by Alexandre Julliard
parent a277a9c4bf
commit f282e10e00
1 changed files with 8 additions and 1 deletions

View File

@ -227,8 +227,15 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_VSSetShader(ID3D11DeviceCo
static void STDMETHODCALLTYPE d3d11_immediate_context_DrawIndexed(ID3D11DeviceContext *iface, static void STDMETHODCALLTYPE d3d11_immediate_context_DrawIndexed(ID3D11DeviceContext *iface,
UINT index_count, UINT start_index_location, INT base_vertex_location) 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); 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, static void STDMETHODCALLTYPE d3d11_immediate_context_Draw(ID3D11DeviceContext *iface,