d3d11: Implement d3d11_query_GetDesc().

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-06-09 13:00:03 +02:00 committed by Alexandre Julliard
parent de7f712ba9
commit 2fb2836b45
2 changed files with 9 additions and 1 deletions

View file

@ -159,7 +159,11 @@ static UINT STDMETHODCALLTYPE d3d11_query_GetDataSize(ID3D11Query *iface)
static void STDMETHODCALLTYPE d3d11_query_GetDesc(ID3D11Query *iface, D3D11_QUERY_DESC *desc)
{
FIXME("iface %p, desc %p stub!\n", iface, desc);
struct d3d_query *query = impl_from_ID3D11Query(iface);
TRACE("iface %p, desc %p.\n", iface, desc);
*desc = query->desc;
}
static const struct ID3D11QueryVtbl d3d11_query_vtbl =
@ -428,6 +432,9 @@ static HRESULT d3d_query_init(struct d3d_query *query, struct d3d_device *device
query->ID3D11Query_iface.lpVtbl = &d3d11_query_vtbl;
query->ID3D10Query_iface.lpVtbl = &d3d10_query_vtbl;
query->refcount = 1;
query->desc = *desc;
wined3d_mutex_lock();
wined3d_private_store_init(&query->private_store);

View file

@ -480,6 +480,7 @@ struct d3d_query
struct wined3d_private_store private_store;
struct wined3d_query *wined3d_query;
BOOL predicate;
D3D11_QUERY_DESC desc;
ID3D11Device *device;
};