Commit f282e10e authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11: Implement d3d11_immediate_context_DrawIndexed().

parent a277a9c4
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment