d3d11: Implement d3d11_query_GetDataSize().

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 2016-07-06 12:02:32 +02:00 committed by Alexandre Julliard
parent 882a8f2b18
commit 7a756ad1b4
1 changed files with 9 additions and 2 deletions

View File

@ -136,9 +136,16 @@ static HRESULT STDMETHODCALLTYPE d3d11_query_SetPrivateDataInterface(ID3D11Query
static UINT STDMETHODCALLTYPE d3d11_query_GetDataSize(ID3D11Query *iface)
{
FIXME("iface %p stub!\n", iface);
struct d3d_query *query = impl_from_ID3D11Query(iface);
unsigned int data_size;
return 0;
TRACE("iface %p.\n", iface);
wined3d_mutex_lock();
data_size = wined3d_query_get_data_size(query->wined3d_query);
wined3d_mutex_unlock();
return data_size;
}
static void STDMETHODCALLTYPE d3d11_query_GetDesc(ID3D11Query *iface, D3D11_QUERY_DESC *desc)