52 TRACE(
"%p increasing refcount to %lu.\n", iface, refcount);
71 TRACE(
"%p decreasing refcount to %lu.\n", iface, refcount);
109 TRACE(
"iface %p, guid %s, data %p, data_size %lu, flags %#lx.\n",
119 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
155 TRACE(
"iface %p.\n", iface);
169 TRACE(
"iface %p.\n", iface);
178 TRACE(
"iface %p.\n", iface);
192 TRACE(
"iface %p, offset %u, size %u, data %p, flags %#lx.\n",
197 WARN(
"Filtering out redundant discard of %p.\n",
buffer);
217 TRACE(
"iface %p.\n", iface);
231 TRACE(
"iface %p, desc %p.\n", iface,
desc);
293 WARN(
"Vertex buffer with D3DPOOL_SCRATCH requested.\n");
314 desc.structure_byte_stride = 0;
335 WARN(
"Failed to create wined3d buffer, hr %#lx.\n",
hr);
339 buffer->parent_device = &
device->IDirect3DDevice8_iface;
383 TRACE(
"%p increasing refcount to %lu.\n", iface, refcount);
399 TRACE(
"%p decreasing refcount to %lu.\n", iface, refcount);
415 IDirect3DDevice8 **
device)
433 TRACE(
"iface %p, guid %s, data %p, data_size %lu, flags %#lx.\n",
443 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
479 TRACE(
"iface %p.\n", iface);
493 TRACE(
"iface %p.\n", iface);
502 TRACE(
"iface %p.\n", iface);
516 TRACE(
"iface %p, offset %u, size %u, data %p, flags %#lx.\n",
521 WARN(
"Filtering out redundant discard of %p.\n",
buffer);
541 TRACE(
"iface %p.\n", iface);
555 TRACE(
"iface %p, desc %p.\n", iface,
desc);
626 desc.structure_byte_stride = 0;
643 WARN(
"Failed to create wined3d buffer, hr %#lx.\n",
hr);
647 buffer->parent_device = &
device->IDirect3DDevice8_iface;
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
#define D3DERR_INVALIDCALL
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)
static unsigned int map_access_from_usage(unsigned int usage)
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format)
static unsigned int wined3d_usage_from_d3d(D3DPOOL pool, DWORD usage)
const struct wined3d_parent_ops d3d8_null_wined3d_parent_ops
static unsigned int wined3daccess_from_d3dpool(D3DPOOL pool, unsigned int usage)
unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags, unsigned int usage)
static D3DPOOL d3dpool_from_wined3daccess(unsigned int access, unsigned int usage)
enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format)
enum _D3DRESOURCETYPE D3DRESOURCETYPE
#define D3DLOCK_NOOVERWRITE
#define D3DUSAGE_RENDERTARGET
enum _D3DFORMAT D3DFORMAT
#define D3DUSAGE_DEPTHSTENCIL
static DWORD WINAPI d3d8_indexbuffer_GetPriority(IDirect3DIndexBuffer8 *iface)
static ULONG WINAPI d3d8_vertexbuffer_AddRef(IDirect3DVertexBuffer8 *iface)
static struct d3d8_indexbuffer * impl_from_IDirect3DIndexBuffer8(IDirect3DIndexBuffer8 *iface)
static HRESULT WINAPI d3d8_vertexbuffer_GetDevice(IDirect3DVertexBuffer8 *iface, IDirect3DDevice8 **device)
static struct d3d8_vertexbuffer * impl_from_IDirect3DVertexBuffer8(IDirect3DVertexBuffer8 *iface)
static const IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl
static DWORD WINAPI d3d8_indexbuffer_SetPriority(IDirect3DIndexBuffer8 *iface, DWORD priority)
static void STDMETHODCALLTYPE d3d8_vertexbuffer_wined3d_object_destroyed(void *parent)
static D3DRESOURCETYPE WINAPI d3d8_vertexbuffer_GetType(IDirect3DVertexBuffer8 *iface)
static HRESULT WINAPI d3d8_vertexbuffer_Unlock(IDirect3DVertexBuffer8 *iface)
static HRESULT WINAPI d3d8_indexbuffer_GetPrivateData(IDirect3DIndexBuffer8 *iface, REFGUID guid, void *data, DWORD *data_size)
static const IDirect3DIndexBuffer8Vtbl d3d8_indexbuffer_vtbl
static HRESULT WINAPI d3d8_vertexbuffer_Lock(IDirect3DVertexBuffer8 *iface, UINT offset, UINT size, BYTE **data, DWORD flags)
static HRESULT WINAPI d3d8_vertexbuffer_SetPrivateData(IDirect3DVertexBuffer8 *iface, REFGUID guid, const void *data, DWORD data_size, DWORD flags)
static HRESULT WINAPI d3d8_indexbuffer_FreePrivateData(IDirect3DIndexBuffer8 *iface, REFGUID guid)
struct d3d8_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer8(IDirect3DIndexBuffer8 *iface)
static void STDMETHODCALLTYPE d3d8_indexbuffer_wined3d_object_destroyed(void *parent)
static void WINAPI d3d8_indexbuffer_PreLoad(IDirect3DIndexBuffer8 *iface)
static const struct wined3d_parent_ops d3d8_indexbuffer_wined3d_parent_ops
static HRESULT WINAPI d3d8_indexbuffer_Unlock(IDirect3DIndexBuffer8 *iface)
static HRESULT WINAPI d3d8_vertexbuffer_GetDesc(IDirect3DVertexBuffer8 *iface, D3DVERTEXBUFFER_DESC *desc)
static ULONG WINAPI d3d8_indexbuffer_AddRef(IDirect3DIndexBuffer8 *iface)
static ULONG WINAPI d3d8_indexbuffer_Release(IDirect3DIndexBuffer8 *iface)
static HRESULT WINAPI d3d8_indexbuffer_GetDesc(IDirect3DIndexBuffer8 *iface, D3DINDEXBUFFER_DESC *desc)
static const struct wined3d_parent_ops d3d8_vertexbuffer_wined3d_parent_ops
static HRESULT WINAPI d3d8_vertexbuffer_QueryInterface(IDirect3DVertexBuffer8 *iface, REFIID riid, void **object)
static void WINAPI d3d8_vertexbuffer_PreLoad(IDirect3DVertexBuffer8 *iface)
static HRESULT WINAPI d3d8_indexbuffer_GetDevice(IDirect3DIndexBuffer8 *iface, IDirect3DDevice8 **device)
struct d3d8_vertexbuffer * unsafe_impl_from_IDirect3DVertexBuffer8(IDirect3DVertexBuffer8 *iface)
HRESULT indexbuffer_init(struct d3d8_indexbuffer *buffer, struct d3d8_device *device, UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool)
static HRESULT WINAPI d3d8_indexbuffer_Lock(IDirect3DIndexBuffer8 *iface, UINT offset, UINT size, BYTE **data, DWORD flags)
static DWORD WINAPI d3d8_vertexbuffer_GetPriority(IDirect3DVertexBuffer8 *iface)
static HRESULT WINAPI d3d8_vertexbuffer_GetPrivateData(IDirect3DVertexBuffer8 *iface, REFGUID guid, void *data, DWORD *data_size)
HRESULT vertexbuffer_init(struct d3d8_vertexbuffer *buffer, struct d3d8_device *device, UINT size, DWORD usage, DWORD fvf, D3DPOOL pool)
static HRESULT WINAPI d3d8_indexbuffer_QueryInterface(IDirect3DIndexBuffer8 *iface, REFIID riid, void **object)
static HRESULT WINAPI d3d8_indexbuffer_SetPrivateData(IDirect3DIndexBuffer8 *iface, REFGUID guid, const void *data, DWORD data_size, DWORD flags)
static HRESULT WINAPI d3d8_vertexbuffer_FreePrivateData(IDirect3DVertexBuffer8 *iface, REFGUID guid)
static D3DRESOURCETYPE WINAPI d3d8_indexbuffer_GetType(IDirect3DIndexBuffer8 *iface)
static ULONG WINAPI d3d8_vertexbuffer_Release(IDirect3DVertexBuffer8 *iface)
static DWORD WINAPI d3d8_vertexbuffer_SetPriority(IDirect3DVertexBuffer8 *iface, DWORD priority)
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)
unsigned int CDECL wined3d_resource_set_priority(struct wined3d_resource *resource, unsigned int priority)
unsigned int CDECL wined3d_resource_get_priority(const struct wined3d_resource *resource)
void CDECL wined3d_resource_preload(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, uint32_t flags)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizeiptr const GLvoid GLenum usage
D3D11_SHADER_VARIABLE_DESC desc
#define IsEqualGUID(rguid1, rguid2)
#define IDirect3DIndexBuffer8_AddRef(p)
#define IDirect3DVertexBuffer8_AddRef(p)
#define IDirect3DDevice8_AddRef(p)
#define IDirect3DDevice8_Release(p)
IDirect3DIndexBuffer8 IDirect3DIndexBuffer8_iface
IDirect3DVertexBuffer8 IDirect3DVertexBuffer8_iface
#define CONTAINING_RECORD(address, type, field)
#define WINED3D_BIND_VERTEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_GPU
#define WINED3D_RESOURCE_ACCESS_MAP_R
#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)