Go to the source code of this file.
◆ d3d9_query_AddRef()
| static ULONG WINAPI d3d9_query_AddRef |
( |
IDirect3DQuery9 * |
iface | ) |
|
|
static |
Definition at line 60 of file query.c.
61{
64
66
68}
#define InterlockedIncrement
static struct d3d9_query * impl_from_IDirect3DQuery9(IDirect3DQuery9 *iface)
◆ d3d9_query_GetData()
Definition at line 130 of file query.c.
131{
135
137
141 {
143
144 if (
size >
sizeof(data_disjoint.disjoint))
145 size =
sizeof(data_disjoint.disjoint);
146
150 }
151 else
152 {
154 }
156
158 {
160 {
163 }
165 }
167}
#define D3DERR_INVALIDCALL
enum wined3d_query_type CDECL wined3d_query_get_type(const struct wined3d_query *query)
HRESULT CDECL wined3d_query_get_data(struct wined3d_query *query, void *data, UINT data_size, uint32_t flags)
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 114 of file query.c.
115{
117
118 TRACE(
"iface %p.\n", iface);
119
120 return query->data_size;
121}
◆ d3d9_query_GetDevice()
Definition at line 86 of file query.c.
87{
89
91
94
96
98}
#define IDirect3DDevice9_AddRef(p)
◆ d3d9_query_GetType()
Definition at line 100 of file query.c.
101{
104
105 TRACE(
"iface %p.\n", iface);
106
110
112}
enum _D3DQUERYTYPE D3DQUERYTYPE
static D3DQUERYTYPE d3dquerytype_from_wined3d(enum wined3d_query_type type)
◆ d3d9_query_Issue()
Definition at line 123 of file query.c.
124{
126 TRACE(
"iface %p, flags %#lx.\n", iface,
flags);
128}
HRESULT CDECL wined3d_query_issue(struct wined3d_query *query, uint32_t flags)
◆ d3d9_query_QueryInterface()
Definition at line 42 of file query.c.
43{
45
48 {
52 }
53
55
58}
#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 70 of file query.c.
71{
74
76
78 {
82 }
84}
#define InterlockedDecrement
#define IDirect3DDevice9Ex_Release(p)
ULONG CDECL wined3d_query_decref(struct wined3d_query *query)
◆ d3dquerytype_from_wined3d()
◆ impl_from_IDirect3DQuery9()
◆ query_init()
Definition at line 182 of file query.c.
183{
185
187 {
189 FIXME(
"Undocumented query %#x created.\n",
type);
190 else
191 WARN(
"Invalid query type %#x.\n",
type);
192
194 }
195
198
202 {
204 WARN(
"Failed to create wined3d query, hr %#lx.\n",
hr);
206 }
207
212 else
215
216 query->parent_device = &
device->IDirect3DDevice9Ex_iface;
218
220}
#define IDirect3DDevice9Ex_AddRef(p)
@ D3DQUERYTYPE_TIMESTAMPDISJOINT
@ D3DQUERYTYPE_MEMORYPRESSURE
static enum wined3d_query_type wined3d_query_type_from_d3d(D3DQUERYTYPE type)
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
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops
Referenced by d3d9_device_CreateQuery().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
d3d9 |
| ) |
|
◆ wined3d_query_type_from_d3d()
◆ 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 170 of file query.c.
Referenced by query_init().