d3d11: Implement d3d11_immediate_context_CopyResource().
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:
parent
5b225953c9
commit
3f280dd20c
|
@ -478,7 +478,16 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_CopySubresourceRegion(ID3D
|
|||
static void STDMETHODCALLTYPE d3d11_immediate_context_CopyResource(ID3D11DeviceContext *iface,
|
||||
ID3D11Resource *dst_resource, ID3D11Resource *src_resource)
|
||||
{
|
||||
FIXME("iface %p, dst_resource %p, src_resource %p stub!\n", iface, dst_resource, src_resource);
|
||||
struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
|
||||
struct wined3d_resource *wined3d_dst_resource, *wined3d_src_resource;
|
||||
|
||||
TRACE("iface %p, dst_resource %p, src_resource %p.\n", iface, dst_resource, src_resource);
|
||||
|
||||
wined3d_dst_resource = wined3d_resource_from_d3d11_resource(dst_resource);
|
||||
wined3d_src_resource = wined3d_resource_from_d3d11_resource(src_resource);
|
||||
wined3d_mutex_lock();
|
||||
wined3d_device_copy_resource(device->wined3d_device, wined3d_dst_resource, wined3d_src_resource);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d3d11_immediate_context_UpdateSubresource(ID3D11DeviceContext *iface,
|
||||
|
|
Loading…
Reference in New Issue