56 TRACE(
"iface %p.\n", iface);
65 TRACE(
"%p increasing refcount to %u.\n", iface, refcount);
86 TRACE(
"iface %p.\n", iface);
96 WARN(
"Surface does not have any references.\n");
101 TRACE(
"%p decreasing refcount to %u.\n", iface, refcount);
142 TRACE(
"iface %p, guid %s, data %p, data_size %u, flags %#x.\n",
152 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
168 TRACE(
"iface %p, priority %u. Ignored on surfaces.\n", iface,
priority);
174 TRACE(
"iface %p. Ignored on surfaces.\n", iface);
182 TRACE(
"iface %p.\n", iface);
191 TRACE(
"iface %p.\n", iface);
218 TRACE(
"iface %p, desc %p.\n", iface,
desc);
244 TRACE(
"iface %p, locked_rect %p, rect %s, flags %#x.\n",
269 TRACE(
"iface %p.\n", iface);
294 TRACE(
"iface %p, dc %p.\n", iface,
dc);
308 TRACE(
"iface %p, dc %p.\n", iface,
dc);
358 IDirect3DBaseTexture9 *
texture;
369 &IID_IDirect3DBaseTexture9, (
void **)&
texture)))
402 IDirect3DDevice9Ex *
device;
422 ERR(
"Failed to create rendertarget view, hr %#x.\n",
hr);
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
static const char * wine_dbgstr_rect(const RECT *prc)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static void list_remove(struct list_entry *entry)
static void list_add_head(struct list_entry *head, struct list_entry *entry)
static void list_init(struct list_entry *head)
#define STDMETHODCALLTYPE
unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags) DECLSPEC_HIDDEN
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format) DECLSPEC_HIDDEN
static DWORD d3dusage_from_wined3dusage(unsigned int usage)
static D3DPOOL d3dpool_from_wined3daccess(unsigned int access, unsigned int usage)
enum _D3DRESOURCETYPE D3DRESOURCETYPE
#define IDirect3DDevice9Ex_Release(p)
#define IDirect3DBaseTexture9_GetDevice(p, a)
#define IDirect3DSurface9_AddRef(p)
#define IDirect3DDevice9Ex_AddRef(p)
#define IDirect3DBaseTexture9_Release(p)
#define IDirect3DBaseTexture9_AddRef(p)
#define IDirect3DDevice9_AddRef(p)
#define IDirect3DBaseTexture9_GetType(p)
void d3d9_resource_init(struct d3d9_resource *resource)
HRESULT d3d9_resource_free_private_data(struct d3d9_resource *resource, const GUID *guid)
HRESULT d3d9_resource_set_private_data(struct d3d9_resource *resource, const GUID *guid, const void *data, DWORD data_size, DWORD flags)
void d3d9_resource_cleanup(struct d3d9_resource *resource)
HRESULT d3d9_resource_get_private_data(struct d3d9_resource *resource, const GUID *guid, void *data, DWORD *data_size)
#define D3DERR_INVALIDCALL
static void STDMETHODCALLTYPE surface_wined3d_object_destroyed(void *parent)
static void STDMETHODCALLTYPE view_wined3d_object_destroyed(void *parent)
void surface_init(struct d3d8_surface *surface, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, const struct wined3d_parent_ops **parent_ops)
void d3d9_surface_release_rendertarget_view(struct d3d9_surface *surface, struct wined3d_rendertarget_view *rtv)
struct d3d9_device * d3d9_surface_get_device(const struct d3d9_surface *surface)
static const struct IDirect3DSurface9Vtbl d3d9_surface_vtbl
static D3DRESOURCETYPE WINAPI d3d9_surface_GetType(IDirect3DSurface9 *iface)
static HRESULT WINAPI d3d9_surface_GetPrivateData(IDirect3DSurface9 *iface, REFGUID guid, void *data, DWORD *data_size)
static HRESULT WINAPI d3d9_surface_GetDesc(IDirect3DSurface9 *iface, D3DSURFACE_DESC *desc)
static HRESULT WINAPI d3d9_surface_GetDC(IDirect3DSurface9 *iface, HDC *dc)
static HRESULT WINAPI d3d9_surface_QueryInterface(IDirect3DSurface9 *iface, REFIID riid, void **out)
static HRESULT WINAPI d3d9_surface_GetDevice(IDirect3DSurface9 *iface, IDirect3DDevice9 **device)
static HRESULT WINAPI d3d9_surface_LockRect(IDirect3DSurface9 *iface, D3DLOCKED_RECT *locked_rect, const RECT *rect, DWORD flags)
static const struct wined3d_parent_ops d3d9_view_wined3d_parent_ops
static HRESULT WINAPI d3d9_surface_SetPrivateData(IDirect3DSurface9 *iface, REFGUID guid, const void *data, DWORD data_size, DWORD flags)
struct wined3d_rendertarget_view * d3d9_surface_acquire_rendertarget_view(struct d3d9_surface *surface)
static DWORD WINAPI d3d9_surface_SetPriority(IDirect3DSurface9 *iface, DWORD priority)
struct d3d9_surface * unsafe_impl_from_IDirect3DSurface9(IDirect3DSurface9 *iface)
static ULONG WINAPI d3d9_surface_AddRef(IDirect3DSurface9 *iface)
static void WINAPI d3d9_surface_PreLoad(IDirect3DSurface9 *iface)
static HRESULT WINAPI d3d9_surface_FreePrivateData(IDirect3DSurface9 *iface, REFGUID guid)
static HRESULT WINAPI d3d9_surface_UnlockRect(IDirect3DSurface9 *iface)
static HRESULT WINAPI d3d9_surface_GetContainer(IDirect3DSurface9 *iface, REFIID riid, void **container)
static struct d3d9_surface * impl_from_IDirect3DSurface9(IDirect3DSurface9 *iface)
static HRESULT WINAPI d3d9_surface_ReleaseDC(IDirect3DSurface9 *iface, HDC dc)
static const struct wined3d_parent_ops d3d9_surface_wined3d_parent_ops
static DWORD WINAPI d3d9_surface_GetPriority(IDirect3DSurface9 *iface)
static ULONG WINAPI d3d9_surface_Release(IDirect3DSurface9 *iface)
void CDECL wined3d_resource_preload(struct wined3d_resource *resource)
HRESULT CDECL wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx)
HRESULT CDECL wined3d_resource_map(struct wined3d_resource *resource, unsigned int sub_resource_idx, struct wined3d_map_desc *map_desc, const struct wined3d_box *box, DWORD flags)
void *CDECL wined3d_texture_get_parent(const struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_get_dc(struct wined3d_texture *texture, unsigned int sub_resource_idx, HDC *dc)
HRESULT CDECL wined3d_texture_get_sub_resource_desc(const struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_sub_resource_desc *desc)
struct wined3d_resource *CDECL wined3d_texture_get_resource(struct wined3d_texture *texture)
ULONG CDECL wined3d_texture_decref(struct wined3d_texture *texture)
ULONG CDECL wined3d_texture_incref(struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_release_dc(struct wined3d_texture *texture, unsigned int sub_resource_idx, HDC dc)
HRESULT CDECL wined3d_rendertarget_view_create_from_sub_resource(struct wined3d_texture *texture, unsigned int sub_resource_idx, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_rendertarget_view **view)
ULONG CDECL wined3d_rendertarget_view_incref(struct wined3d_rendertarget_view *view)
ULONG CDECL wined3d_rendertarget_view_decref(struct wined3d_rendertarget_view *view)
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
static const WCHAR desc[]
#define IsEqualGUID(rguid1, rguid2)
IDirect3DDevice9Ex * parent_device
struct wined3d_texture * wined3d_texture
IDirect3DSurface9 IDirect3DSurface9_iface
struct d3d9_resource resource
struct wined3d_rendertarget_view * wined3d_rtv
struct d3d9_texture * texture
unsigned int sub_resource_idx
enum wined3d_format_id format
unsigned int multisample_quality
enum wined3d_multisample_type multisample_type
#define CONTAINING_RECORD(address, type, field)
static struct d3d9_device * impl_from_IDirect3DDevice9Ex(IDirect3DDevice9Ex *iface)
struct d3d9_texture * unsafe_impl_from_IDirect3DBaseTexture9(IDirect3DBaseTexture9 *iface) DECLSPEC_HIDDEN
void d3d9_texture_flag_auto_gen_mipmap(struct d3d9_texture *texture) DECLSPEC_HIDDEN
#define WINEDDERR_NOTLOCKED
static void wined3d_box_set(struct wined3d_box *box, unsigned int left, unsigned int top, unsigned int right, unsigned int bottom, unsigned int front, unsigned int back)
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)