50 WARN(
"Application asks for IDirect3D9Ex, but this instance wasn't created with Direct3DCreate9Ex.\n");
100 TRACE(
"iface %p, init_function %p.\n", iface, init_function);
114 TRACE(
"iface %p.\n", iface);
130 TRACE(
"iface %p, adapter %u, flags %#x, identifier %p.\n",
181 TRACE(
"iface %p, adapter %u, format %#x, mode_idx %u, mode %p.\n",
232 TRACE(
"iface %p, adapter %u, device_type %#x, display_format %#x, backbuffer_format %#x, windowed %#x.\n",
254 TRACE(
"iface %p, adapter %u, device_type %#x, adapter_format %#x, usage %#x, resource_type %#x, format %#x.\n",
258 switch (resource_type)
280 FIXME(
"Unhandled resource type %#x.\n", resource_type);
298 TRACE(
"iface %p, adapter %u, device_type %#x, format %#x, windowed %#x, multisample_type %#x, levels %p.\n",
320 TRACE(
"iface %p, adapter %u, device_type %#x, adapter_format %#x, rt_format %#x, ds_format %#x.\n",
338 TRACE(
"iface %p, adapter %u, device_type %#x, src_format %#x, dst_format %#x.\n",
360 memset(caps, 0,
sizeof(*caps));
385 WARN(
"Failed to get output desc, hr %#x.\n",
hr);
394 IDirect3DDevice9 **
device)
400 TRACE(
"iface %p, adapter %u, device_type %#x, focus_window %p, flags %#x, parameters %p, device %p.\n",
403 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
409 WARN(
"Failed to initialize device, hr %#x.\n",
hr);
414 TRACE(
"Created device %p.\n",
object);
415 *
device = (IDirect3DDevice9 *)&
object->IDirect3DDevice9Ex_iface;
446 TRACE(
"iface %p, adapter %u, filter %p, mode_idx %u, mode %p.\n",
454 filter->ScanLineOrdering, mode_idx, &wined3d_mode);
476 TRACE(
"iface %p, adapter %u, mode %p, rotation %p.\n",
507 TRACE(
"iface %p, adapter %u, device_type %#x, focus_window %p, flags %#x, parameters %p, mode %p, device %p.\n",
510 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
516 WARN(
"Failed to initialize device, hr %#x.\n",
hr);
521 TRACE(
"Created device %p.\n",
object);
522 *
device = &
object->IDirect3DDevice9Ex_iface;
533 TRACE(
"iface %p, adapter %u, luid %p.\n", iface,
adapter, luid);
#define DECLSPEC_HOTPATCH
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void d3dcaps_from_wined3dcaps(D3DCAPS8 *caps, const WINED3DCAPS *wined3d_caps) DECLSPEC_HIDDEN
enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format) DECLSPEC_HIDDEN
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format) DECLSPEC_HIDDEN
HRESULT device_init(struct d3d8_device *device, struct d3d8 *parent, struct wined3d *wined3d, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters) DECLSPEC_HIDDEN
enum _D3DRESOURCETYPE D3DRESOURCETYPE
enum _D3DDEVTYPE D3DDEVTYPE
@ D3DMULTISAMPLE_16_SAMPLES
enum _D3DFORMAT D3DFORMAT
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_CreateDevice(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters, IDirect3DDevice9 **device)
static HRESULT WINAPI d3d9_GetAdapterDisplayModeEx(IDirect3D9Ex *iface, UINT adapter, D3DDISPLAYMODEEX *mode, D3DDISPLAYROTATION *rotation)
static UINT WINAPI d3d9_GetAdapterModeCount(IDirect3D9Ex *iface, UINT adapter, D3DFORMAT format)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_CreateDeviceEx(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters, D3DDISPLAYMODEEX *mode, IDirect3DDevice9Ex **device)
static HRESULT WINAPI d3d9_GetAdapterLUID(IDirect3D9Ex *iface, UINT adapter, LUID *luid)
static HRESULT WINAPI d3d9_EnumAdapterModes(IDirect3D9Ex *iface, UINT adapter, D3DFORMAT format, UINT mode_idx, D3DDISPLAYMODE *mode)
static UINT WINAPI d3d9_GetAdapterCount(IDirect3D9Ex *iface)
static HRESULT WINAPI d3d9_CheckDeviceType(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, D3DFORMAT display_format, D3DFORMAT backbuffer_format, BOOL windowed)
static HMONITOR WINAPI d3d9_GetAdapterMonitor(IDirect3D9Ex *iface, UINT adapter)
static UINT WINAPI d3d9_GetAdapterModeCountEx(IDirect3D9Ex *iface, UINT adapter, const D3DDISPLAYMODEFILTER *filter)
static HRESULT WINAPI d3d9_CheckDeviceMultiSampleType(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, D3DFORMAT format, BOOL windowed, D3DMULTISAMPLE_TYPE multisample_type, DWORD *levels)
static ULONG WINAPI d3d9_Release(IDirect3D9Ex *iface)
static HRESULT WINAPI d3d9_QueryInterface(IDirect3D9Ex *iface, REFIID riid, void **out)
static HRESULT WINAPI d3d9_EnumAdapterModesEx(IDirect3D9Ex *iface, UINT adapter, const D3DDISPLAYMODEFILTER *filter, UINT mode_idx, D3DDISPLAYMODEEX *mode)
static ULONG WINAPI d3d9_AddRef(IDirect3D9Ex *iface)
static struct d3d9 * impl_from_IDirect3D9Ex(IDirect3D9Ex *iface)
static HRESULT WINAPI d3d9_CheckDeviceFormatConversion(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, D3DFORMAT src_format, D3DFORMAT dst_format)
static const struct IDirect3D9ExVtbl d3d9_vtbl
static HRESULT WINAPI d3d9_CheckDeviceFormat(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, D3DFORMAT adapter_format, DWORD usage, D3DRESOURCETYPE resource_type, D3DFORMAT format)
static HRESULT WINAPI d3d9_RegisterSoftwareDevice(IDirect3D9Ex *iface, void *init_function)
static HRESULT WINAPI d3d9_GetAdapterIdentifier(IDirect3D9Ex *iface, UINT adapter, DWORD flags, D3DADAPTER_IDENTIFIER9 *identifier)
static HRESULT WINAPI d3d9_GetDeviceCaps(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, D3DCAPS9 *caps)
static HRESULT WINAPI d3d9_CheckDepthStencilMatch(IDirect3D9Ex *iface, UINT adapter, D3DDEVTYPE device_type, D3DFORMAT adapter_format, D3DFORMAT rt_format, D3DFORMAT ds_format)
static HRESULT WINAPI d3d9_GetAdapterDisplayMode(IDirect3D9Ex *iface, UINT adapter, D3DDISPLAYMODE *mode)
BOOL d3d9_init(struct d3d9 *d3d9, BOOL extended)
#define IDirect3D9Ex_AddRef(p)
#define D3DERR_INVALIDCALL
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLsizeiptr const GLvoid GLenum usage
#define memcpy(s1, s2, n)
static const WCHAR desc[]
static const char * dst_format
#define IsEqualGUID(rguid1, rguid2)
char Driver[MAX_DEVICE_IDENTIFIER_STRING]
char Description[MAX_DEVICE_IDENTIFIER_STRING]
LARGE_INTEGER DriverVersion
IDirect3D9Ex IDirect3D9Ex_iface
LARGE_INTEGER driver_version
enum wined3d_format_id format_id
enum wined3d_scanline_ordering scanline_ordering
#define CONTAINING_RECORD(address, type, field)
ULONG CDECL wined3d_decref(struct wined3d *wined3d)
HRESULT CDECL wined3d_check_device_type(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, enum wined3d_format_id display_format, enum wined3d_format_id backbuffer_format, BOOL windowed)
HRESULT CDECL wined3d_check_device_format_conversion(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, enum wined3d_format_id src_format, enum wined3d_format_id dst_format)
UINT CDECL wined3d_get_adapter_count(const struct wined3d *wined3d)
HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, enum wined3d_format_id adapter_format_id, DWORD usage, enum wined3d_resource_type resource_type, enum wined3d_format_id check_format_id)
HRESULT CDECL wined3d_get_output_desc(const struct wined3d *wined3d, unsigned int adapter_idx, struct wined3d_output_desc *desc)
UINT CDECL wined3d_get_adapter_mode_count(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_format_id format_id, enum wined3d_scanline_ordering scanline_ordering)
HRESULT CDECL wined3d_get_adapter_identifier(const struct wined3d *wined3d, UINT adapter_idx, DWORD flags, struct wined3d_adapter_identifier *identifier)
HRESULT CDECL wined3d_enum_adapter_modes(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_format_id format_id, enum wined3d_scanline_ordering scanline_ordering, UINT mode_idx, struct wined3d_display_mode *mode)
HRESULT CDECL wined3d_register_software_device(struct wined3d *wined3d, void *init_function)
HRESULT CDECL wined3d_get_adapter_display_mode(const struct wined3d *wined3d, UINT adapter_idx, struct wined3d_display_mode *mode, enum wined3d_display_rotation *rotation)
HRESULT CDECL wined3d_check_depth_stencil_match(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, enum wined3d_format_id adapter_format_id, enum wined3d_format_id render_target_format_id, enum wined3d_format_id depth_stencil_format_id)
HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, WINED3DCAPS *caps)
HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, enum wined3d_format_id surface_format_id, BOOL windowed, enum wined3d_multisample_type multisample_type, DWORD *quality_levels)
#define WINED3D_RESTORE_MODE_ON_ACTIVATE
#define WINED3DUSAGE_QUERY_MASK
#define WINED3D_NORMALIZED_DEPTH_BIAS
#define WINED3D_LIMIT_VIEWPORT
#define WINED3DUSAGE_LEGACY_CUBEMAP
#define WINED3D_VIDMEM_ACCOUNTING
#define WINED3D_LEGACY_UNBOUND_RESOURCE_COLOR
@ WINED3D_RTYPE_TEXTURE_2D
@ WINED3D_RTYPE_TEXTURE_3D
#define WINED3D_HANDLE_RESTORE
#define WINED3D_NO_PRIMITIVE_RESTART
#define WINED3DERR_NOTAVAILABLE
#define WINED3DUSAGE_MASK
#define WINED3D_PRESENT_CONVERSION
@ WINED3D_SCANLINE_ORDERING_UNKNOWN
#define WINED3DERR_INVALIDCALL
#define WINED3D_PIXEL_CENTER_INTEGER
#define WINED3D_SRGB_READ_WRITE_CONTROL
#define WINED3DUSAGE_TEXTURE
#define WINED3D_LEGACY_CUBEMAP_FILTERING
void WINAPI wined3d_mutex_unlock(void)
struct wined3d *CDECL wined3d_create(DWORD flags)
void WINAPI wined3d_mutex_lock(void)