25 #include "wine/port.h" 41 { { 0x00010001, 0x00010001 } },
44 {0xa8373c10,0x7ac4,0x4deb, {0x84,0x9a,0x00,0x98,0x44,0xd0,0x8b,0x2d}},
58 "WINE Direct3D7 Hardware Transform and Lighting acceleration using WineD3D",
60 &IID_IDirect3DTnLHalDevice,
66 "WINE Direct3D7 Hardware acceleration using WineD3D",
68 &IID_IDirect3DHALDevice,
74 "WINE Direct3D7 RGB Software Emulation using WineD3D",
76 &IID_IDirect3DRGBDevice,
150 TRACE(
"Returning IDirectDraw7 interface %p.\n", *
out);
155 TRACE(
"Returning IDirectDraw4 interface %p.\n", *
out);
160 TRACE(
"Returning IDirectDraw2 interface %p.\n", *
out);
165 TRACE(
"Returning IDirectDraw interface %p.\n", *
out);
171 TRACE(
"Returning Direct3D7 interface %p.\n", *
out);
177 TRACE(
"Returning Direct3D3 interface %p.\n", *
out);
183 TRACE(
"Returning Direct3D2 interface %p.\n", *
out);
189 TRACE(
"Returning Direct3D interface %p.\n", *
out);
336 TRACE(
"iface %p.\n", iface);
345 TRACE(
"iface %p.\n", iface);
354 TRACE(
"iface %p.\n", iface);
363 TRACE(
"iface %p.\n", iface);
370 TRACE(
"Destroying the swapchain.\n");
388 ERR(
"Failed to uninit 3D.\n");
410 TRACE(
"Swapchain destroyed.\n");
426 IDirectDraw7_RestoreDisplayMode(&
This->IDirectDraw7_iface);
429 if(
This->devicewindow != 0)
431 TRACE(
" (%p) Destroying the device window %p\n",
This,
This->devicewindow);
433 This->devicewindow = 0;
440 if (
This->wined3d_swapchain)
515 TRACE(
"iface %p.\n", iface);
524 TRACE(
"iface %p.\n", iface);
533 TRACE(
"iface %p.\n", iface);
542 TRACE(
"iface %p.\n", iface);
557 TRACE(
"Setting DDSCL_SETFOCUSWINDOW with an already set window, returning DDERR_HWNDALREADYSET.\n");
586 WARN(
"No window for the Direct3DDevice, created hidden window %p.\n",
window);
592 TRACE(
"Using existing window %p for Direct3D rendering.\n",
window);
609 ERR(
"Error allocating an array for the converted vertex decls.\n");
615 TRACE(
"Successfully initialized 3D.\n");
628 ERR(
"Failed to get display mode.\n");
632 memset(&swapchain_desc, 0,
sizeof(swapchain_desc));
649 ERR(
"Failed to create swapchain, hr %#x.\n",
hr);
655 ERR(
"Failed to get swapchain.\n");
683 TRACE(
"iface %p.\n", iface);
713 TRACE(
"iface %p.\n", iface);
722 TRACE(
"iface %p.\n", iface);
731 TRACE(
"iface %p.\n", iface);
779 DWORD cooplevel,
BOOL restore_mode_on_normal)
786 TRACE(
"ddraw %p, window %p, flags %#x, restore_mode_on_normal %x.\n",
ddraw,
window, cooplevel,
787 restore_mode_on_normal);
794 WARN(
"Recursive call, returning DD_OK.\n");
805 TRACE(
"Incorrect cooplevel flags, returning DDERR_INVALIDPARAMS\n");
812 WARN(
"DDSCL_CREATEDEVICEWINDOW requires DDSCL_EXCLUSIVE.\n");
831 WARN(
"Called with incompatible flags, returning DDERR_INVALIDPARAMS.\n");
844 WARN(
"DDSCL_EXCLUSIVE requires DDSCL_FULLSCREEN and a window.\n");
855 WARN(
"No focus window set.\n");
871 TRACE(
"Created a device window %p.\n", device_window);
929 restore_state =
TRUE;
933 ERR(
"Failed to create stateblock, hr %#x.\n",
hr);
953 ERR(
"Failed to create swapchain, hr %#x.\n",
hr);
974 && restore_mode_on_normal)
978 ERR(
"RestoreDisplayMode failed\n");
991 ERR(
"Failed to acquire focus window, hr %#x.\n",
hr);
998 WARN(
"Unhandled flag DDSCL_ALLOWREBOOT, harmless\n");
1000 WARN(
"Unhandled flag DDSCL_ALLOWMODEX, harmless\n");
1002 WARN(
"Unhandled flag DDSCL_FPUSETUP, harmless\n");
1013 TRACE(
"SetCooperativeLevel returning DD_OK\n");
1092 TRACE(
"iface %p, width %u, height %u, bpp %u, refresh_rate %u, flags %#x.\n",
1097 TRACE(
"ForceRefreshRate overriding passed-in refresh rate (%u Hz) to %u Hz\n",
1143 ERR(
"Failed to resize buffers, hr %#x.\n",
hr);
1166 TRACE(
"iface %p, width %u, height %u, bpp %u, refresh_rate %u, flags %#x.\n",
1177 TRACE(
"iface %p, width %u, height %u, bpp %u, refresh_rate %u, flags %#x.\n",
1194 memset(caps1, 0,
sizeof(*caps1));
1195 caps1->
dwSize =
sizeof(*caps1);
1255 memset(&wined3d_caps, 0,
sizeof(wined3d_caps));
1262 WARN(
"Failed to get device caps, hr %#x.\n",
hr);
1432 caps->
deviceGUID = IID_IDirect3DTnLHalDevice;
1446 switch (
format->u1.dwZBufferBitDepth)
1449 caps->dwZBufferBitDepths |=
DDBD_8;
1452 caps->dwZBufferBitDepths |=
DDBD_16;
1455 caps->dwZBufferBitDepths |=
DDBD_24;
1458 caps->dwZBufferBitDepths |=
DDBD_32;
1487 TRACE(
"iface %p, driver_caps %p, hel_caps %p.\n", iface, DriverCaps, HELCaps);
1490 if (!DriverCaps && !HELCaps)
1492 WARN(
"Invalid parameters.\n");
1496 memset(&caps, 0,
sizeof(caps));
1497 memset(&winecaps, 0,
sizeof(winecaps));
1498 caps.dwSize =
sizeof(caps);
1504 WARN(
"Failed to get device caps, %#x.\n",
hr);
1509 hr = IDirectDraw7_GetAvailableVidMem(iface, &ddscaps, &caps.dwVidMemTotal, &caps.dwVidMemFree);
1512 WARN(
"IDirectDraw7::GetAvailableVidMem failed\n");
1517 hr = IDirectDraw7_GetFourCCCodes(iface, &caps.dwNumFourCCCodes,
NULL);
1521 WARN(
"IDirectDraw7::GetFourCCCodes failed\n");
1527 caps.dwCKeyCaps = winecaps.
ddraw_caps.color_key_caps;
1530 caps.ddsCaps.dwCaps = winecaps.
ddraw_caps.dds_caps;
1531 caps.dwSVBCaps = winecaps.
ddraw_caps.svb_caps;
1532 caps.dwSVBCKeyCaps = winecaps.
ddraw_caps.svb_color_key_caps;
1533 caps.dwSVBFXCaps = winecaps.
ddraw_caps.svb_fx_caps;
1534 caps.dwVSBCaps = winecaps.
ddraw_caps.vsb_caps;
1535 caps.dwVSBCKeyCaps = winecaps.
ddraw_caps.vsb_color_key_caps;
1536 caps.dwVSBFXCaps = winecaps.
ddraw_caps.vsb_fx_caps;
1537 caps.dwSSBCaps = winecaps.
ddraw_caps.ssb_caps;
1538 caps.dwSSBCKeyCaps = winecaps.
ddraw_caps.ssb_color_key_caps;
1539 caps.dwSSBFXCaps = winecaps.
ddraw_caps.ssb_fx_caps;
1544 caps.ddsOldCaps.dwCaps = caps.ddsCaps.dwCaps;
1553 TRACE(
"Driver Caps :\n");
1563 TRACE(
"HEL Caps :\n");
1575 TRACE(
"iface %p, driver_caps %p, hel_caps %p.\n", iface, driver_caps, hel_caps);
1584 TRACE(
"iface %p, driver_caps %p, hel_caps %p.\n", iface, driver_caps, hel_caps);
1593 TRACE(
"iface %p, driver_caps %p, hel_caps %p.\n", iface, driver_caps, hel_caps);
1609 TRACE(
"iface %p.\n", iface);
1618 TRACE(
"iface %p.\n", iface);
1627 TRACE(
"iface %p.\n", iface);
1636 TRACE(
"iface %p.\n", iface);
1661 TRACE(
"iface %p, surface_desc %p.\n", iface, DDSD);
1671 ERR(
"Failed to get display mode, hr %#x.\n",
hr);
1677 DDSD->
dwSize =
sizeof(*DDSD);
1689 TRACE(
"Returning surface desc :\n");
1702 TRACE(
"iface %p, surface_desc %p.\n", iface, surface_desc);
1712 TRACE(
"iface %p, surface_desc %p.\n", iface, surface_desc);
1724 TRACE(
"iface %p, surface_desc %p.\n", iface, surface_desc);
1761 TRACE(
"iface %p, codes_count %p, codes %p.\n", iface, NumCodes, Codes);
1765 ERR(
"Failed to get display mode, hr %#x.\n",
hr);
1769 outsize = NumCodes && Codes ? *NumCodes : 0;
1793 TRACE(
"iface %p, codes_count %p, codes %p.\n", iface, codes_count, codes);
1802 TRACE(
"iface %p, codes_count %p, codes %p.\n", iface, codes_count, codes);
1811 TRACE(
"iface %p, codes_count %p, codes %p.\n", iface, codes_count, codes);
1829 WARN(
"Failed to get display mode, hr %#x.\n",
hr);
1881 WARN(
"Failed to get raster status, hr %#x.\n",
hr);
1935 unsigned int framebuffer_size, total_vidmem, free_vidmem;
1940 TRACE(
"iface %p, caps %p, total %p, free %p.\n", iface, caps,
total,
free);
1947 TRACE(
"Asked for memory with description: ");
1962 WARN(
"Failed to get display mode, hr %#x.\n",
hr);
1968 framebuffer_size *=
mode.height;
1973 *
free = framebuffer_size > free_vidmem ? 0 : free_vidmem - framebuffer_size;
1974 TRACE(
"Free video memory %#x.\n", *
free);
1983 *
total = framebuffer_size > total_vidmem ? 0 : total_vidmem - framebuffer_size;
1997 TRACE(
"iface %p, caps %p, total %p, free %p.\n", iface, caps,
total,
free);
2008 TRACE(
"iface %p, caps %p, total %p, free %p.\n", iface, caps,
total,
free);
2097 TRACE(
"iface %p.\n", iface);
2111 TRACE(
"iface %p.\n", iface);
2120 TRACE(
"iface %p.\n", iface);
2129 TRACE(
"iface %p.\n", iface);
2204 TRACE(
"iface %p, line %p.\n", iface, Scanline);
2211 WARN(
"Failed to get raster status, hr %#x.\n",
hr);
2227 TRACE(
"iface %p, line %p.\n", iface,
line);
2236 TRACE(
"iface %p, line %p.\n", iface,
line);
2245 TRACE(
"iface %p, line %p.\n", iface,
line);
2254 TRACE(
"iface %p.\n", iface);
2263 TRACE(
"iface %p.\n", iface);
2286 TRACE(
"iface %p, surface %p.\n", iface, GDISurface);
2290 if (!(*GDISurface = &
ddraw->
primary->IDirectDrawSurface7_iface))
2292 WARN(
"Primary not created yet.\n");
2296 IDirectDrawSurface7_AddRef(*GDISurface);
2310 TRACE(
"iface %p, surface %p.\n", iface, surface);
2320 IDirectDrawSurface4_AddRef(*surface);
2321 IDirectDrawSurface7_Release(surface7);
2333 TRACE(
"iface %p, surface %p.\n", iface, surface);
2343 IDirectDrawSurface_AddRef(*surface);
2344 IDirectDrawSurface7_Release(surface7);
2356 TRACE(
"iface %p, surface %p.\n", iface, surface);
2366 IDirectDrawSurface_AddRef(*surface);
2367 IDirectDrawSurface7_Release(surface7);
2411 unsigned int modenum,
fmt;
2413 unsigned enum_mode_count = 0, enum_mode_array_size = 16;
2423 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
2429 if (!(enum_modes =
heap_alloc(enum_mode_array_size *
sizeof(*enum_modes))))
2459 for (
i = 0;
i < enum_mode_count;
i++)
2471 memset(&callback_sd, 0,
sizeof(callback_sd));
2472 callback_sd.
dwSize =
sizeof(callback_sd);
2486 callback_sd.u1.
lPitch = (callback_sd.u1.
lPitch + 3) & ~3;
2493 TRACE(
"Application asked to terminate the enumeration\n");
2499 if (enum_mode_count == enum_mode_array_size)
2503 enum_mode_array_size *= 2;
2504 if (!(new_enum_modes =
heap_realloc(enum_modes, enum_mode_array_size *
sizeof(*new_enum_modes))))
2511 enum_modes = new_enum_modes;
2513 enum_modes[enum_mode_count++] =
mode;
2517 TRACE(
"End of enumeration\n");
2529 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
2542 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
2548 if (surface_desc)
DDSD_to_DDSD2(surface_desc, &surface_desc2);
2560 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
2566 if (surface_desc)
DDSD_to_DDSD2(surface_desc, &surface_desc2);
2618 TRACE(
"iface %p, device_identifier %p, flags %#x.\n", iface, DDDI,
Flags);
2664 TRACE(
"iface %p, identifier %p, flags %#x.\n", iface, identifier,
flags);
2692 TRACE(
"iface %p, dc %p, surface %p.\n", iface,
dc, surface);
2703 if (surface_impl->
dc !=
dc)
2706 TRACE(
"Found surface %p for dc %p.\n", surface_impl,
dc);
2708 IDirectDrawSurface7_AddRef(*surface);
2715 TRACE(
"No surface found for dc %p.\n",
dc);
2721 IDirectDrawSurface4 **surface)
2728 TRACE(
"iface %p, dc %p, surface %p.\n", iface,
dc, surface);
2742 IDirectDrawSurface7_Release(surface7);
2749 IDirectDrawSurface_Restore(surface);
2750 IDirectDrawSurface_Release(surface);
2757 TRACE(
"iface %p.\n", iface);
2767 TRACE(
"iface %p.\n", iface);
2796 FIXME(
"iface %p, modes %p, mode_count %u, flags %#x partial stub!\n",
2820 TRACE(
"iface %p, surface_desc %p, surface %p, outer_unknown %p.\n",
2827 WARN(
"Cooperative level not set.\n");
2834 WARN(
"Application supplied invalid surface descriptor\n");
2845 WARN(
"Surface pointer %p is invalid.\n", surface);
2855 TRACE(
" (%p) Requesting surface desc :\n", iface);
2859 WARN(
"Application tried to create an explicit front or back buffer\n");
2870 IDirectDraw7_AddRef(iface);
2883 TRACE(
"iface %p, surface_desc %p, surface %p, outer_unknown %p.\n",
2890 WARN(
"Cooperative level not set.\n");
2897 WARN(
"Application supplied invalid surface descriptor\n");
2908 WARN(
"Surface pointer %p is invalid.\n", surface);
2918 TRACE(
" (%p) Requesting surface desc :\n", iface);
2922 WARN(
"Application tried to create an explicit front or back buffer\n");
2933 IDirectDraw4_AddRef(iface);
2947 TRACE(
"iface %p, surface_desc %p, surface %p, outer_unknown %p.\n",
2954 WARN(
"Cooperative level not set.\n");
2961 WARN(
"Application supplied invalid surface descriptor\n");
2972 WARN(
"Surface pointer %p is invalid.\n", surface);
2983 TRACE(
" (%p) Requesting surface desc :\n", iface);
2987 WARN(
"Application tried to create an explicit front or back buffer\n");
3011 TRACE(
"iface %p, surface_desc %p, surface %p, outer_unknown %p.\n",
3018 WARN(
"Cooperative level not set.\n");
3025 WARN(
"Application supplied invalid surface descriptor\n");
3036 WARN(
"Surface pointer %p is invalid.\n", surface);
3047 WARN(
"Application tried to create an explicit front or back buffer.\n");
3076 if ((requested->
dwFlags & must_match) != (provided->
dwFlags & must_match))
3119 #define CMP(FLAG, FIELD) \ 3120 { DDSD_##FLAG, offsetof(DDSURFACEDESC2, FIELD), \ 3121 sizeof(((DDSURFACEDESC2 *)(NULL))->FIELD) } 3126 CMP(BACKBUFFERCOUNT,
u5.dwBackBufferCount),
3128 CMP(CKDESTBLT, ddckCKDestBlt),
3129 CMP(CKDESTOVERLAY,
u3 ),
3130 CMP(CKSRCBLT, ddckCKSrcBlt),
3131 CMP(CKSRCOVERLAY, ddckCKSrcOverlay),
3133 CMP(LINEARSIZE,
u1 ),
3134 CMP(LPSURFACE, lpSurface),
3135 CMP(MIPMAPCOUNT,
u2 ),
3138 CMP(REFRESHRATE,
u2 ),
3139 CMP(TEXTURESTAGE, dwTextureStage),
3189 IDirectDrawSurface7_Release(surface);
3192 surface_desc, cbcontext->
context);
3202 IDirectDrawSurface7_Release(surface);
3234 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
3252 memcpy(&testdesc, DDSD,
sizeof(testdesc));
3264 hr = IDirectDraw7_CreateSurface(iface, &testdesc, &surface,
NULL);
3269 IDirectDrawSurface7_Release(surface);
3272 ERR(
"Failed to create surface, hr %#x.\n",
hr);
3281 if (match_flags != 0 &&
3302 WARN(
"Not enumerating surface %p because it doesn't have any references.\n", surf);
3308 TRACE(
"Enumerating surface %p.\n", surf);
3333 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
3350 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
3356 if (surface_desc)
DDSD_to_DDSD2(surface_desc, &surface_desc2);
3368 TRACE(
"iface %p, flags %#x, surface_desc %p, context %p, callback %p.\n",
3374 if (surface_desc)
DDSD_to_DDSD2(surface_desc, &surface_desc2);
3399 TRACE(
"flags %#x, clipper %p, outer_unknown %p.\n",
3400 flags, clipper, outer_unknown);
3407 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
3416 WARN(
"Failed to initialize clipper, hr %#x.\n",
hr);
3422 TRACE(
"Created clipper %p.\n",
object);
3423 *clipper = &
object->IDirectDrawClipper_iface;
3436 IDirectDrawClipper **Clipper,
IUnknown *UnkOuter)
3438 TRACE(
"iface %p, flags %#x, clipper %p, outer_unknown %p.\n",
3439 iface,
Flags, Clipper, UnkOuter);
3445 IDirectDrawClipper **clipper,
IUnknown *outer_unknown)
3449 TRACE(
"iface %p, flags %#x, clipper %p, outer_unknown %p.\n",
3450 iface,
flags, clipper, outer_unknown);
3460 TRACE(
"iface %p, flags %#x, clipper %p, outer_unknown %p.\n",
3461 iface,
flags, clipper, outer_unknown);
3471 TRACE(
"iface %p, flags %#x, clipper %p, outer_unknown %p.\n",
3472 iface,
flags, clipper, outer_unknown);
3501 TRACE(
"iface %p, flags %#x, color_table %p, palette %p, outer_unknown %p.\n",
3502 iface,
Flags, ColorTable, Palette, pUnkOuter);
3512 WARN(
"No cooperative level set, returning DDERR_NOCOOPERATIVELEVELSET\n");
3519 ERR(
"Out of memory when allocating memory for a palette implementation\n");
3527 WARN(
"Failed to initialize palette, hr %#x.\n",
hr);
3533 TRACE(
"Created palette %p.\n",
object);
3534 *Palette = &
object->IDirectDrawPalette_iface;
3546 TRACE(
"iface %p, flags %#x, entries %p, palette %p, outer_unknown %p.\n",
3554 IDirectDraw4_AddRef(iface);
3566 TRACE(
"iface %p, flags %#x, entries %p, palette %p, outer_unknown %p.\n",
3586 TRACE(
"iface %p, flags %#x, entries %p, palette %p, outer_unknown %p.\n",
3622 FIXME(
"iface %p, src %p, dst %p partial stub!\n", iface, Src, Dest);
3625 return IDirectDraw7_CreateSurface(iface, &src_surface->
surface_desc, Dest,
NULL);
3629 IDirectDrawSurface4 **
dst)
3637 TRACE(
"iface %p, src %p, dst %p.\n", iface,
src,
dst);
3648 IDirectDrawSurface4_AddRef(*
dst);
3649 IDirectDrawSurface7_Release(dst7);
3655 IDirectDrawSurface *
src, IDirectDrawSurface **
dst)
3663 TRACE(
"iface %p, src %p, dst %p.\n", iface,
src,
dst);
3671 IDirectDrawSurface_AddRef(*
dst);
3672 IDirectDrawSurface7_Release(dst7);
3678 IDirectDrawSurface **
dst)
3686 TRACE(
"iface %p, src %p, dst %p.\n", iface,
src,
dst);
3694 IDirectDrawSurface_AddRef(*
dst);
3695 IDirectDrawSurface7_Release(dst7);
3747 TRACE(
"Application cancelled the enumeration.\n");
3753 TRACE(
"End of enumeration.\n");
3779 static CHAR wined3d_description[] =
"Wine D3DDevice using WineD3D and OpenGL";
3827 static CHAR reference_description[] =
"RGB Direct3D emulation";
3829 TRACE(
"Enumerating WineD3D D3DDevice interface.\n");
3830 hal_desc = device_desc1;
3831 hel_desc = device_desc1;
3842 hr =
callback((
GUID *)&IID_IDirect3DRGBDevice, reference_description,
3846 TRACE(
"Application cancelled the enumeration.\n");
3854 TRACE(
"Enumerating HAL Direct3D device.\n");
3855 hal_desc = device_desc1;
3856 hel_desc = device_desc1;
3866 hr =
callback((
GUID *)&IID_IDirect3DHALDevice, wined3d_description,
3870 TRACE(
"Application cancelled the enumeration.\n");
3875 TRACE(
"End of enumeration.\n");
3927 TRACE(
"iface %p, light %p, outer_unknown %p.\n", iface,
light, outer_unknown);
3932 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
3934 ERR(
"Failed to allocate light memory.\n");
3940 TRACE(
"Created light %p.\n",
object);
3941 *
light = &
object->IDirect3DLight_iface;
3950 TRACE(
"iface %p, light %p, outer_unknown %p.\n", iface,
light, outer_unknown);
3959 TRACE(
"iface %p, light %p, outer_unknown %p.\n", iface,
light, outer_unknown);
3990 TRACE(
"iface %p, material %p, outer_unknown %p.\n", iface, material, outer_unknown);
3997 ERR(
"Failed to allocate material memory.\n");
4001 TRACE(
"Created material %p.\n",
object);
4002 *material = &
object->IDirect3DMaterial3_iface;
4013 TRACE(
"iface %p, material %p, outer_unknown %p.\n", iface, material, outer_unknown);
4018 ERR(
"Failed to allocate material memory.\n");
4022 TRACE(
"Created material %p.\n",
object);
4023 *material = &
object->IDirect3DMaterial2_iface;
4034 TRACE(
"iface %p, material %p, outer_unknown %p.\n", iface, material, outer_unknown);
4039 ERR(
"Failed to allocate material memory.\n");
4043 TRACE(
"Created material %p.\n",
object);
4044 *material = &
object->IDirect3DMaterial_iface;
4075 TRACE(
"iface %p, viewport %p, outer_unknown %p.\n", iface, viewport, outer_unknown);
4079 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
4081 ERR(
"Failed to allocate viewport memory.\n");
4087 TRACE(
"Created viewport %p.\n",
object);
4088 *viewport = &
object->IDirect3DViewport3_iface;
4097 TRACE(
"iface %p, viewport %p, outer_unknown %p.\n", iface, viewport, outer_unknown);
4107 TRACE(
"iface %p, viewport %p, outer_unknown %p.\n", iface, viewport, outer_unknown);
4136 TRACE(
"iface %p, fds %p, fdr %p.\n", iface, fds, fdr);
4147 WARN(
"Trying to request a non-RGB D3D color model. Not supported.\n");
4158 WARN(
"No match for this GUID.\n");
4189 TRACE(
"Returning Wine's wined3d device with (undumped) capabilities.\n");
4198 TRACE(
"iface %p, fds %p, fdr %p.\n", iface, fds, fdr);
4207 TRACE(
"iface %p, fds %p, fdr %p.\n", iface, fds, fdr);
4246 *
device = &
object->IDirect3DDevice7_iface;
4250 WARN(
"Failed to create device, hr %#x.\n",
hr);
4266 TRACE(
"iface %p, riid %s, surface %p, device %p, outer_unknown %p.\n",
4279 WARN(
"Failed to create device, hr %#x.\n",
hr);
4288 IDirectDrawSurface *surface, IDirect3DDevice2 **
device)
4295 TRACE(
"iface %p, riid %s, surface %p, device %p.\n",
4305 WARN(
"Failed to create device, hr %#x.\n",
hr);
4339 TRACE(
"iface %p, desc %p, vertex_buffer %p, flags %#x.\n",
4347 TRACE(
"Created vertex buffer %p.\n",
object);
4351 WARN(
"Failed to create vertex buffer, hr %#x.\n",
hr);