55 TRACE(
"iface %p.\n", iface);
64 TRACE(
"%p increasing refcount to %u.\n", iface, refcount);
85 TRACE(
"iface %p.\n", iface);
95 WARN(
"Surface does not have any references.\n");
100 TRACE(
"%p decreasing refcount to %u.\n", iface, refcount);
140 TRACE(
"iface %p, guid %s, data %p, data_size %u, flags %#x.\n",
150 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
186 TRACE(
"iface %p, desc %p.\n", iface,
desc);
213 TRACE(
"iface %p, locked_rect %p, rect %s, flags %#x.\n",
236 WARN(
"Trying to lock an invalid rectangle, returning D3DERR_INVALIDCALL\n");
239 locked_rect->
Pitch = 0;
257 locked_rect->
Pitch = 0;
269 TRACE(
"iface %p.\n", iface);
320 IDirect3DBaseTexture8 *
texture;
331 &IID_IDirect3DBaseTexture8, (
void **)&
texture)))
384 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
HRESULT d3d8_resource_get_private_data(struct d3d8_resource *resource, const GUID *guid, void *data, DWORD *data_size)
void d3d8_resource_cleanup(struct d3d8_resource *resource)
void d3d8_resource_init(struct d3d8_resource *resource)
HRESULT d3d8_resource_set_private_data(struct d3d8_resource *resource, const GUID *guid, const void *data, DWORD data_size, DWORD flags)
HRESULT d3d8_resource_free_private_data(struct d3d8_resource *resource, const GUID *guid)
struct d3d8_texture * unsafe_impl_from_IDirect3DBaseTexture8(IDirect3DBaseTexture8 *iface) DECLSPEC_HIDDEN
unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags) DECLSPEC_HIDDEN
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format) DECLSPEC_HIDDEN
static struct d3d8_device * impl_from_IDirect3DDevice8(IDirect3DDevice8 *iface)
static DWORD d3dusage_from_wined3dusage(unsigned int usage)
static D3DPOOL d3dpool_from_wined3daccess(unsigned int access, unsigned int usage)
enum _D3DRESOURCETYPE D3DRESOURCETYPE
#define D3DERR_INVALIDCALL
static void STDMETHODCALLTYPE surface_wined3d_object_destroyed(void *parent)
static HRESULT WINAPI d3d8_surface_LockRect(IDirect3DSurface8 *iface, D3DLOCKED_RECT *locked_rect, const RECT *rect, DWORD flags)
static ULONG WINAPI d3d8_surface_Release(IDirect3DSurface8 *iface)
static HRESULT WINAPI d3d8_surface_SetPrivateData(IDirect3DSurface8 *iface, REFGUID guid, const void *data, DWORD data_size, DWORD flags)
static HRESULT WINAPI d3d8_surface_GetPrivateData(IDirect3DSurface8 *iface, REFGUID guid, void *data, DWORD *data_size)
static HRESULT WINAPI d3d8_surface_FreePrivateData(IDirect3DSurface8 *iface, REFGUID guid)
struct d3d8_surface * unsafe_impl_from_IDirect3DSurface8(IDirect3DSurface8 *iface)
struct d3d8_device * d3d8_surface_get_device(const struct d3d8_surface *surface)
static const struct wined3d_parent_ops d3d8_surface_wined3d_parent_ops
static HRESULT WINAPI d3d8_surface_QueryInterface(IDirect3DSurface8 *iface, REFIID riid, void **out)
static HRESULT WINAPI d3d8_surface_GetDesc(IDirect3DSurface8 *iface, D3DSURFACE_DESC *desc)
static ULONG WINAPI d3d8_surface_AddRef(IDirect3DSurface8 *iface)
struct wined3d_rendertarget_view * d3d8_surface_acquire_rendertarget_view(struct d3d8_surface *surface)
static struct d3d8_surface * impl_from_IDirect3DSurface8(IDirect3DSurface8 *iface)
static HRESULT WINAPI d3d8_surface_UnlockRect(IDirect3DSurface8 *iface)
static const IDirect3DSurface8Vtbl d3d8_surface_vtbl
static HRESULT WINAPI d3d8_surface_GetDevice(IDirect3DSurface8 *iface, IDirect3DDevice8 **device)
static const struct wined3d_parent_ops d3d8_view_wined3d_parent_ops
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)
static HRESULT WINAPI d3d8_surface_GetContainer(IDirect3DSurface8 *iface, REFIID riid, void **container)
void d3d8_surface_release_rendertarget_view(struct d3d8_surface *surface, struct wined3d_rendertarget_view *rtv)
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_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_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)
#define IDirect3DSurface8_GetDesc(p, a)
#define IDirect3DBaseTexture8_GetDevice(p, a)
#define IDirect3DBaseTexture8_AddRef(p)
#define IDirect3DBaseTexture8_GetType(p)
#define IDirect3DSurface8_AddRef(p)
#define IDirect3DDevice8_AddRef(p)
#define IDirect3DBaseTexture8_Release(p)
#define IDirect3DDevice8_Release(p)
IDirect3DDevice8 * parent_device
struct d3d8_texture * texture
unsigned int sub_resource_idx
struct wined3d_rendertarget_view * wined3d_rtv
IDirect3DSurface8 IDirect3DSurface8_iface
struct d3d8_resource resource
struct wined3d_texture * wined3d_texture
enum wined3d_format_id format
enum wined3d_multisample_type multisample_type
#define CONTAINING_RECORD(address, type, field)
#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)