d3d11: Implement d3d11_immediate_context_DispatchIndirect().

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 2017-08-14 23:47:42 +02:00 committed by Alexandre Julliard
parent 2f66f1288f
commit 59f96ff3a5
1 changed files with 11 additions and 1 deletions

View File

@ -868,7 +868,17 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_Dispatch(ID3D11DeviceConte
static void STDMETHODCALLTYPE d3d11_immediate_context_DispatchIndirect(ID3D11DeviceContext *iface, static void STDMETHODCALLTYPE d3d11_immediate_context_DispatchIndirect(ID3D11DeviceContext *iface,
ID3D11Buffer *buffer, UINT offset) ID3D11Buffer *buffer, UINT offset)
{ {
FIXME("iface %p, buffer %p, offset %u stub!\n", iface, buffer, offset); struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
struct d3d_buffer *buffer_impl;
TRACE("iface %p, buffer %p, offset %u.\n", iface, buffer, offset);
buffer_impl = unsafe_impl_from_ID3D11Buffer(buffer);
wined3d_mutex_lock();
wined3d_device_dispatch_compute_indirect(device->wined3d_device,
buffer_impl->wined3d_buffer, offset);
wined3d_mutex_unlock();
} }
static void STDMETHODCALLTYPE d3d11_immediate_context_RSSetState(ID3D11DeviceContext *iface, static void STDMETHODCALLTYPE d3d11_immediate_context_RSSetState(ID3D11DeviceContext *iface,