54 TRACE(
"%p increasing refcount to %lu.\n", iface, refcount);
73 TRACE(
"%p decreasing refcount to %lu.\n", iface, refcount);
110 TRACE(
"iface %p, guid %s, data %p, data_size %lu, flags %#lx.\n",
120 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
156 TRACE(
"iface %p.\n", iface);
170 TRACE(
"iface %p.\n", iface);
179 TRACE(
"iface %p.\n", iface);
193 TRACE(
"iface %p, offset %u, size %u, data %p, flags %#lx.\n",
210 TRACE(
"iface %p.\n", iface);
224 TRACE(
"iface %p, desc %p.\n", iface,
desc);
286 WARN(
"Vertex buffer with D3DPOOL_SCRATCH requested.\n");
292 WARN(
"Managed resources are not supported by d3d9ex devices.\n");
313 desc.structure_byte_stride = 0;
315 if (!
device->d3d_parent->extended)
337 WARN(
"Failed to create wined3d buffer, hr %#lx.\n",
hr);
341 buffer->parent_device = &
device->IDirect3DDevice9Ex_iface;
385 TRACE(
"%p increasing refcount to %lu.\n", iface, refcount);
401 TRACE(
"%p decreasing refcount to %lu.\n", iface, refcount);
434 TRACE(
"iface %p, guid %s, data %p, data_size %lu, flags %#lx.\n",
444 TRACE(
"iface %p, guid %s, data %p, data_size %p.\n",
480 TRACE(
"iface %p.\n", iface);
494 TRACE(
"iface %p.\n", iface);
503 TRACE(
"iface %p.\n", iface);
517 TRACE(
"iface %p, offset %u, size %u, data %p, flags %#lx.\n",
534 TRACE(
"iface %p.\n", iface);
547 TRACE(
"iface %p, desc %p.\n", iface,
desc);
608 WARN(
"Managed resources are not supported by d3d9ex devices.\n");
624 desc.structure_byte_stride = 0;
626 if (!
device->d3d_parent->extended)
644 WARN(
"Failed to create wined3d buffer, hr %#lx.\n",
hr);
648 buffer->parent_device = &
device->IDirect3DDevice9Ex_iface;
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
#define D3DERR_INVALIDCALL
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)
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 D3DUSAGE_RENDERTARGET
enum _D3DFORMAT D3DFORMAT
#define D3DUSAGE_DEPTHSTENCIL
#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)
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)
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)
IDirect3DIndexBuffer9 IDirect3DIndexBuffer9_iface
IDirect3DVertexBuffer9 IDirect3DVertexBuffer9_iface
#define CONTAINING_RECORD(address, type, field)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops
#define WINED3D_BIND_VERTEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_GPU
#define WINED3DUSAGE_VIDMEM_ACCOUNTING
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)
#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)