55 TRACE(
"%p increasing refcount to %u.\n", iface, refcount);
73 TRACE(
"%p decreasing refcount to %u.\n", iface, refcount);
108 TRACE(
"iface %p, guid %s, data %p, data_size %u, flags %#x.\n",
118 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
154 TRACE(
"iface %p.\n", iface);
168 TRACE(
"iface %p.\n", iface);
177 TRACE(
"iface %p.\n", iface);
190 TRACE(
"iface %p, offset %u, size %u, data %p, flags %#x.\n",
208 TRACE(
"iface %p.\n", iface);
224 TRACE(
"iface %p, desc %p.\n", iface,
desc);
282 WARN(
"Vertex buffer with D3DPOOL_SCRATCH requested.\n");
296 desc.structure_byte_stride = 0;
304 WARN(
"Failed to create wined3d buffer, hr %#x.\n",
hr);
308 buffer->parent_device = &
device->IDirect3DDevice9Ex_iface;
352 TRACE(
"%p increasing refcount to %u.\n", iface, refcount);
370 TRACE(
"%p decreasing refcount to %u.\n", iface, refcount);
405 TRACE(
"iface %p, guid %s, data %p, data_size %u, flags %#x.\n",
415 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
451 TRACE(
"iface %p.\n", iface);
465 TRACE(
"iface %p.\n", iface);
474 TRACE(
"iface %p.\n", iface);
487 TRACE(
"iface %p, offset %u, size %u, data %p, flags %#x.\n",
505 TRACE(
"iface %p.\n", iface);
520 TRACE(
"iface %p, desc %p.\n", iface,
desc);
583 desc.structure_byte_stride = 0;
595 WARN(
"Failed to create wined3d buffer, hr %#x.\n",
hr);
599 buffer->parent_device = &
device->IDirect3DDevice9Ex_iface;
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags) DECLSPEC_HIDDEN
enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format) DECLSPEC_HIDDEN
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format) DECLSPEC_HIDDEN
static DWORD d3dusage_from_wined3dusage(unsigned int usage)
static unsigned int wined3daccess_from_d3dpool(D3DPOOL pool, unsigned int usage)
static D3DPOOL d3dpool_from_wined3daccess(unsigned int access, unsigned int usage)
enum _D3DRESOURCETYPE D3DRESOURCETYPE
enum _D3DFORMAT D3DFORMAT
#define IDirect3DIndexBuffer9_AddRef(p)
#define IDirect3DDevice9Ex_Release(p)
#define IDirect3DVertexBuffer9_AddRef(p)
#define IDirect3DDevice9Ex_AddRef(p)
#define IDirect3DDevice9_AddRef(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
HRESULT indexbuffer_init(struct d3d8_indexbuffer *buffer, struct d3d8_device *device, UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool)
HRESULT vertexbuffer_init(struct d3d8_vertexbuffer *buffer, struct d3d8_device *device, UINT size, DWORD usage, DWORD fvf, D3DPOOL pool)
static DWORD WINAPI d3d9_indexbuffer_GetPriority(IDirect3DIndexBuffer9 *iface)
static HRESULT WINAPI d3d9_vertexbuffer_Lock(IDirect3DVertexBuffer9 *iface, UINT offset, UINT size, void **data, DWORD flags)
static HRESULT WINAPI d3d9_vertexbuffer_Unlock(IDirect3DVertexBuffer9 *iface)
static HRESULT WINAPI d3d9_indexbuffer_GetPrivateData(IDirect3DIndexBuffer9 *iface, REFGUID guid, void *data, DWORD *data_size)
static HRESULT WINAPI d3d9_indexbuffer_Unlock(IDirect3DIndexBuffer9 *iface)
static HRESULT WINAPI d3d9_vertexbuffer_GetPrivateData(IDirect3DVertexBuffer9 *iface, REFGUID guid, void *data, DWORD *data_size)
static void WINAPI d3d9_indexbuffer_PreLoad(IDirect3DIndexBuffer9 *iface)
static const struct wined3d_parent_ops d3d9_indexbuffer_wined3d_parent_ops
static DWORD WINAPI d3d9_vertexbuffer_GetPriority(IDirect3DVertexBuffer9 *iface)
static void STDMETHODCALLTYPE d3d9_vertexbuffer_wined3d_object_destroyed(void *parent)
static DWORD WINAPI d3d9_vertexbuffer_SetPriority(IDirect3DVertexBuffer9 *iface, DWORD priority)
static DWORD WINAPI d3d9_indexbuffer_SetPriority(IDirect3DIndexBuffer9 *iface, DWORD priority)
static ULONG WINAPI d3d9_indexbuffer_Release(IDirect3DIndexBuffer9 *iface)
static D3DRESOURCETYPE WINAPI d3d9_indexbuffer_GetType(IDirect3DIndexBuffer9 *iface)
static HRESULT WINAPI d3d9_indexbuffer_GetDesc(IDirect3DIndexBuffer9 *iface, D3DINDEXBUFFER_DESC *desc)
static HRESULT WINAPI d3d9_vertexbuffer_SetPrivateData(IDirect3DVertexBuffer9 *iface, REFGUID guid, const void *data, DWORD data_size, DWORD flags)
static const struct wined3d_parent_ops d3d9_vertexbuffer_wined3d_parent_ops
static ULONG WINAPI d3d9_vertexbuffer_AddRef(IDirect3DVertexBuffer9 *iface)
static HRESULT WINAPI d3d9_vertexbuffer_GetDevice(IDirect3DVertexBuffer9 *iface, IDirect3DDevice9 **device)
static ULONG WINAPI d3d9_indexbuffer_AddRef(IDirect3DIndexBuffer9 *iface)
static HRESULT WINAPI d3d9_indexbuffer_SetPrivateData(IDirect3DIndexBuffer9 *iface, REFGUID guid, const void *data, DWORD data_size, DWORD flags)
static HRESULT WINAPI d3d9_indexbuffer_Lock(IDirect3DIndexBuffer9 *iface, UINT offset, UINT size, void **data, DWORD flags)
static HRESULT WINAPI d3d9_indexbuffer_GetDevice(IDirect3DIndexBuffer9 *iface, IDirect3DDevice9 **device)
static HRESULT WINAPI d3d9_vertexbuffer_FreePrivateData(IDirect3DVertexBuffer9 *iface, REFGUID guid)
struct d3d9_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer9(IDirect3DIndexBuffer9 *iface)
static struct d3d9_vertexbuffer * impl_from_IDirect3DVertexBuffer9(IDirect3DVertexBuffer9 *iface)
static const IDirect3DIndexBuffer9Vtbl d3d9_indexbuffer_vtbl
static HRESULT WINAPI d3d9_indexbuffer_FreePrivateData(IDirect3DIndexBuffer9 *iface, REFGUID guid)
static struct d3d9_indexbuffer * impl_from_IDirect3DIndexBuffer9(IDirect3DIndexBuffer9 *iface)
static void WINAPI d3d9_vertexbuffer_PreLoad(IDirect3DVertexBuffer9 *iface)
static HRESULT WINAPI d3d9_vertexbuffer_QueryInterface(IDirect3DVertexBuffer9 *iface, REFIID riid, void **out)
static HRESULT WINAPI d3d9_indexbuffer_QueryInterface(IDirect3DIndexBuffer9 *iface, REFIID riid, void **out)
static ULONG WINAPI d3d9_vertexbuffer_Release(IDirect3DVertexBuffer9 *iface)
struct d3d9_vertexbuffer * unsafe_impl_from_IDirect3DVertexBuffer9(IDirect3DVertexBuffer9 *iface)
static const IDirect3DVertexBuffer9Vtbl d3d9_vertexbuffer_vtbl
static void STDMETHODCALLTYPE d3d9_indexbuffer_wined3d_object_destroyed(void *parent)
static D3DRESOURCETYPE WINAPI d3d9_vertexbuffer_GetType(IDirect3DVertexBuffer9 *iface)
static HRESULT WINAPI d3d9_vertexbuffer_GetDesc(IDirect3DVertexBuffer9 *iface, D3DVERTEXBUFFER_DESC *desc)
HRESULT CDECL wined3d_buffer_create(struct wined3d_device *device, const struct wined3d_buffer_desc *desc, const struct wined3d_sub_resource_data *data, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_buffer **buffer)
ULONG CDECL wined3d_buffer_incref(struct wined3d_buffer *buffer)
ULONG CDECL wined3d_buffer_decref(struct wined3d_buffer *buffer)
struct wined3d_resource *CDECL wined3d_buffer_get_resource(struct wined3d_buffer *buffer)
void CDECL wined3d_resource_preload(struct wined3d_resource *resource)
DWORD CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, DWORD priority)
DWORD CDECL wined3d_resource_get_priority(const struct wined3d_resource *resource)
HRESULT CDECL wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx)
void CDECL wined3d_resource_get_desc(const struct wined3d_resource *resource, struct wined3d_resource_desc *desc)
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)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizeiptr const GLvoid GLenum usage
static const WCHAR desc[]
#define IsEqualGUID(rguid1, rguid2)
IDirect3DIndexBuffer9 IDirect3DIndexBuffer9_iface
IDirect3DVertexBuffer9 IDirect3DVertexBuffer9_iface
#define CONTAINING_RECORD(address, type, field)
#define WINED3D_BIND_VERTEX_BUFFER
#define WINED3DUSAGE_MASK
#define WINED3D_RESOURCE_ACCESS_MAP_R
#define WINED3DUSAGE_SCRATCH
#define WINED3DUSAGE_STATICDECL
#define WINED3D_BIND_INDEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_MAP_W
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)