#include "config.h"
#include "d3d9_private.h"
Go to the source code of this file.
◆ d3d9_query_AddRef()
static ULONG WINAPI d3d9_query_AddRef |
( |
IDirect3DQuery9 * |
iface | ) |
|
|
static |
Definition at line 51 of file query.c.
52{
55
57
59}
#define InterlockedIncrement
static struct d3d9_query * impl_from_IDirect3DQuery9(IDirect3DQuery9 *iface)
◆ d3d9_query_GetData()
Definition at line 131 of file query.c.
132{
136
137 TRACE(
"iface %p, data %p, size %u, flags %#x.\n",
139
143 {
145
146 if (
size >
sizeof(data_disjoint.disjoint))
147 size =
sizeof(data_disjoint.disjoint);
148
152 }
153 else
154 {
156 }
158
160 {
162 {
165 }
167 }
169}
#define D3DERR_INVALIDCALL
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)
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define memcpy(s1, s2, n)
@ WINED3D_QUERY_TYPE_TIMESTAMP_DISJOINT
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
◆ d3d9_query_GetDataSize()
static DWORD WINAPI d3d9_query_GetDataSize |
( |
IDirect3DQuery9 * |
iface | ) |
|
|
static |
Definition at line 108 of file query.c.
109{
111
112 TRACE(
"iface %p.\n", iface);
113
114 return query->data_size;
115}
◆ d3d9_query_GetDevice()
static HRESULT WINAPI d3d9_query_GetDevice |
( |
IDirect3DQuery9 * |
iface, |
|
|
IDirect3DDevice9 ** |
device |
|
) |
| |
|
static |
Definition at line 80 of file query.c.
81{
83
85
88
90
92}
#define IDirect3DDevice9_AddRef(p)
◆ d3d9_query_GetType()
Definition at line 94 of file query.c.
95{
98
99 TRACE(
"iface %p.\n", iface);
100
104
106}
enum _D3DQUERYTYPE D3DQUERYTYPE
◆ d3d9_query_Issue()
Definition at line 117 of file query.c.
118{
121
122 TRACE(
"iface %p, flags %#x.\n", iface,
flags);
123
127
129}
HRESULT CDECL wined3d_query_issue(struct wined3d_query *query, DWORD flags)
◆ d3d9_query_QueryInterface()
Definition at line 33 of file query.c.
34{
36
39 {
43 }
44
46
49}
#define IDirect3DQuery9_AddRef(p)
#define IsEqualGUID(rguid1, rguid2)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
◆ d3d9_query_Release()
static ULONG WINAPI d3d9_query_Release |
( |
IDirect3DQuery9 * |
iface | ) |
|
|
static |
Definition at line 61 of file query.c.
62{
65
67
69 {
73
76 }
78}
static BOOL heap_free(void *mem)
#define InterlockedDecrement
#define IDirect3DDevice9Ex_Release(p)
ULONG CDECL wined3d_query_decref(struct wined3d_query *query)
◆ impl_from_IDirect3DQuery9()
◆ query_init()
Definition at line 184 of file query.c.
185{
187
189 {
191 FIXME(
"Undocumented query %#x created.\n",
type);
192 else
193 WARN(
"Invalid query type %#x.\n",
type);
194
196 }
197
200
204 {
206 WARN(
"Failed to create wined3d query, hr %#x.\n",
hr);
208 }
209
214 else
217
218 query->parent_device = &
device->IDirect3DDevice9Ex_iface;
220
222}
#define IDirect3DDevice9Ex_AddRef(p)
@ D3DQUERYTYPE_TIMESTAMPDISJOINT
@ D3DQUERYTYPE_MEMORYPRESSURE
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops
static const struct IDirect3DQuery9Vtbl d3d9_query_vtbl
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)
#define D3DERR_NOTAVAILABLE
Referenced by d3d9_device_CreateQuery().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
d3d9 |
| ) |
|
◆ d3d9_query_vtbl
Initial value:=
{
}
static HRESULT WINAPI d3d9_query_QueryInterface(IDirect3DQuery9 *iface, REFIID riid, void **out)
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)
Definition at line 172 of file query.c.
Referenced by query_init().