99 TRACE(
"iface %p.\n", iface);
112 TRACE(
"iface %p.\n", iface);
114 return query->data_size;
122 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
137 TRACE(
"iface %p, data %p, size %u, flags %#x.\n",
191 FIXME(
"Undocumented query %#x created.\n",
type);
193 WARN(
"Invalid query type %#x.\n",
type);
206 WARN(
"Failed to create wined3d query, hr %#x.\n",
hr);
218 query->parent_device = &
device->IDirect3DDevice9Ex_iface;
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define IDirect3DDevice9Ex_Release(p)
#define IDirect3DDevice9Ex_AddRef(p)
#define IDirect3DQuery9_AddRef(p)
#define IDirect3DDevice9_AddRef(p)
enum _D3DQUERYTYPE D3DQUERYTYPE
@ D3DQUERYTYPE_TIMESTAMPDISJOINT
@ D3DQUERYTYPE_MEMORYPRESSURE
#define D3DERR_INVALIDCALL
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops
HRESULT query_init(struct d3d9_query *query, struct d3d9_device *device, D3DQUERYTYPE type)
static HRESULT WINAPI d3d9_query_QueryInterface(IDirect3DQuery9 *iface, REFIID riid, void **out)
static struct d3d9_query * impl_from_IDirect3DQuery9(IDirect3DQuery9 *iface)
static DWORD WINAPI d3d9_query_GetDataSize(IDirect3DQuery9 *iface)
static ULONG WINAPI d3d9_query_AddRef(IDirect3DQuery9 *iface)
static HRESULT WINAPI d3d9_query_Issue(IDirect3DQuery9 *iface, DWORD flags)
static D3DQUERYTYPE WINAPI d3d9_query_GetType(IDirect3DQuery9 *iface)
static HRESULT WINAPI d3d9_query_GetDevice(IDirect3DQuery9 *iface, IDirect3DDevice9 **device)
static HRESULT WINAPI d3d9_query_GetData(IDirect3DQuery9 *iface, void *data, DWORD size, DWORD flags)
static ULONG WINAPI d3d9_query_Release(IDirect3DQuery9 *iface)
static const struct IDirect3DQuery9Vtbl d3d9_query_vtbl
HRESULT CDECL wined3d_query_get_data(struct wined3d_query *query, void *data, UINT data_size, DWORD flags)
enum wined3d_query_type CDECL wined3d_query_get_type(const struct wined3d_query *query)
HRESULT CDECL wined3d_query_issue(struct wined3d_query *query, DWORD flags)
HRESULT CDECL wined3d_query_create(struct wined3d_device *device, enum wined3d_query_type type, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_query **query)
UINT CDECL wined3d_query_get_data_size(const struct wined3d_query *query)
ULONG CDECL wined3d_query_decref(struct wined3d_query *query)
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define memcpy(s1, s2, n)
#define IsEqualGUID(rguid1, rguid2)
#define D3DERR_NOTAVAILABLE
IDirect3DQuery9 IDirect3DQuery9_iface
#define CONTAINING_RECORD(address, type, field)
@ WINED3D_QUERY_TYPE_TIMESTAMP_DISJOINT
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)